﻿/* Основные стили */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

header a {
    color: white;
    text-decoration: none;
}

h1, h2, h3 {
    color: #2c3e50;
}

/* Стили для книг */
.book-list {
    list-style: none;
    padding: 0;
}

.book-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.book-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-item a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Стили для задач */
.problem {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Кнопки показа решения */
.toggle-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 10px 0;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #2980b9;
}

/* Решения */
.solution {
    background: #e8f4fc;
    border-left: 4px solid #2ecc71;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 5px 5px 0;
    display: none;
}

/* Формулы */
.math {
    font-family: "Cambria Math", serif;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 3px;
}

/* Футер */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
}

/* ===== АНИМЕ ФОН ===== */
body.temp-anime-bg {
    background-image: url('/TrynaGetSmarter/assets/images/test_image.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body.temp-anime-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

body.temp-anime-bg main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.temp-anime-bg header {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
}

body.temp-anime-bg .book-item,
body.temp-anime-bg .problem {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .book-item, .problem {
        padding: 1rem;
    }



    /* Кнопка аниме-цитаты */
    .quote-btn {
        display: block;
        margin: 2rem auto;
        padding: 15px 30px;
        background: linear-gradient(45deg, #ff6b8b, #9d50bb);
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
        transition: all 0.3s;
    }

    .quote-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 107, 139, 0.6);
        background: linear-gradient(45deg, #ff4757, #8e44ad);
    }

    .quote-btn:active {
        transform: translateY(1px);
    }

    /* Индикатор воспроизведения */
    .quote-playing {
        background: linear-gradient(45deg, #2ecc71, #3498db) !important;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
        100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
    }
}
