/* Общие стили для всех страниц "Возвращение Демиурга" */
:root {
    --main-bg: #0d1b1e;
    --secondary-bg: #1a2e2a;
    --accent: #d4af37;
    --accent-dark: #a78b3d;
    --text: #e8f1f2;
    --text-secondary: #b8c5c6;
}

/* Навигационное меню - улучшенный дизайн */
.navbar {
    background-color: rgba(13, 27, 30, 0.98);
    backdrop-filter: blur(15px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.nav-logo-img {
    height: 45px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--accent);
    background-color: rgba(212, 175, 55, 0.08);
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.nav-link.active {
    color: var(--main-bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    border-color: var(--accent);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-link i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: rgba(26, 46, 42, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent);
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 14px 22px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.95rem;
    position: relative;
}

.nav-dropdown-link:last-child {
    border-bottom: none;
}

.nav-dropdown-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding-left: 28px;
}

.nav-dropdown-link::before {
    content: '→';
    position: absolute;
    left: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent);
}

.nav-dropdown-link:hover::before {
    opacity: 1;
    left: 18px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.1);
}

.nav-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg);
}

/* Отступ для контента под фиксированной навигацией */
body {
    padding-top: 75px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(26, 46, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        display: none;
        border-top: 3px solid var(--accent);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.4s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(212, 175, 55, 0.3);
        background-color: rgba(0, 0, 0, 0.2);
        margin-top: 10px;
        margin-left: 20px;
        opacity: 1;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
    
    .nav-link {
        justify-content: space-between;
        padding: 12px 20px;
        border-radius: 12px;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--main-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(rgba(13,27,30,0.8), rgba(13,27,30,0.8)), url('../Content/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.logo {
    max-width: 300px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    max-width: 800px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--main-bg);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: var(--accent-dark);
}

section {
    padding: 80px 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--accent);
}

h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.song-card {
    background: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.song-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.song-info {
    padding: 20px;
}

.song-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: var(--accent);
}

.song-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    min-height: 60px;
}

.song-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.play-btn {
    background: var(--accent);
    color: var(--main-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

.play-btn.playing::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    animation: progress 30s linear forwards;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

.characters-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.character-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.character-thumb:hover {
    transform: scale(1.2);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.character-card {
    background: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.character-card:hover {
    transform: scale(1.05);
}

.character-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.character-info {
    padding: 20px;
}

.character-name {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--accent);
}

.character-desc {
    color: var(--text-secondary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--secondary-bg);
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

.song-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.song-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.song-video iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 5px;
}

.song-audio {
    width: 100%;
}

.song-text {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 5px;
    white-space: pre-line;
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.external-link {
    display: inline-block;
    background: var(--accent);
    color: var(--main-bg);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.external-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

footer {
    background: #0a1517;
    padding: 30px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Стили для раздела благодарностей */
.sponsors-section {
    background: var(--secondary-bg);
    border-radius: 10px;
    padding: 40px;
    margin-top: 50px;
}

.main-sponsor {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 2px solid var(--accent);
}

.main-sponsor h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.main-sponsor-info {
    font-size: 1.3rem;
    color: var(--text);
    font-weight: bold;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sponsor-card {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
}

.sponsor-name {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.sponsor-amount {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.supporters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.supporter {
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.supporter:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.category-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 40px 0 20px;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .songs-grid, .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .song-video iframe {
        height: 250px;
    }
    
    .sponsors-section {
        padding: 20px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}