/* CSS Variables */
:root {
    --black: #000000;
    --gold: #D4AF37;
    --dark-gold: #B8860B;
    --light-gold: #F5E8C8;
    --white: #FFFFFF;
    --gray: #333333;
    --light-gray: #d1d1d1;
    --background: #000000;
    --card-bg: rgba(51, 51, 51, 0.7);
    --text-color: #FFFFFF;
    --border-color: var(--gold);
}

[data-theme="light"] {
    --background: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333333;
    --border-color: var(--gold);
    --gray: #e9ecef;
    --light-gray: #6c757d;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url(../images/anastasiia-rozumna-PgP9L5CWI38-unsplash.jpg);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
    min-height: 100vh;
    position: relative;
    background-color: rgba(0,0,0,.85);
}

[data-theme="light"] .app-container {
    background-color: rgba(248, 249, 250, 0.9);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

.logo {
    font-size: 2rem;
    text-align: center;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    letter-spacing: 1px;
    font-family: "Tangerine", cursive;
    align-items: center;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gold);
    position: relative;
    font-family: cursive;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
}

.theme-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--gold);
}

.moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gold);
}

[data-theme="light"] .navbar {
    background: rgba(248, 249, 250, 0.9);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid var(--gold);
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

[data-theme="light"] .mobile-menu {
    background: rgba(248, 249, 250, 0.95);
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 1.5rem;
    min-height: calc(100vh - 80px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.time {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.event-details {
    color: var(--light-gray);
}

.event-details ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.event-details li {
    margin-bottom: 0.3rem;
}

/* Menu Section */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
}

.menu-category {
    margin-bottom: 3rem;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.menu-category:nth-child(1) { animation-delay: 0.1s; }
.menu-category:nth-child(2) { animation-delay: 0.2s; }
.menu-category:nth-child(3) { animation-delay: 0.3s; }
.menu-category:nth-child(4) { animation-delay: 0.4s; }

.menu-category-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.menu-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.menu-item-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.menu-item-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
}

.menu-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item-list li {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    padding-left: 1.5rem;
}

.menu-item-list li:last-child {
    border-bottom: none;
}

.menu-item-list li::before {
    content: '•';
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        background: transparent;
        border: none;
        transform: none;
        opacity: 1;
        padding: 0;
    }
    
    .nav-btn {
        text-align: center;
        padding: 0.5rem 1.5rem;
        margin: 0 0.5rem;
        border-radius: 6px;
    }
    
    .main-content {
        margin-top: 100px;
    }

    .menu-item-list li {
        font-size: 1.05rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .menu-container {
        max-width: 900px;
    }
    
    .menu-item {
        padding: 2.5rem;
    }
}

/* Special device adaptations */
@media (max-width: 360px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .timeline-item {
        padding: 1rem;
    }
    
    .menu-item {
        padding: 1.5rem;
    }
    
    .menu-item-description {
        font-size: 1rem;
    }
    
    .menu-item-list li {
        font-size: 1rem;
        padding-left: 1.2rem;
    }
}

/* For foldable devices */
@media (max-width: 320px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .menu-item {
        padding: 1.2rem;
    }
}

/* For tablets in landscape */
@media (min-width: 1024px) and (max-height: 768px) {
    .main-content {
        margin-top: 80px;
    }
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 90px;
        right: 15px;
    }
    
    .theme-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}