/* Sundae Funday - Main Styles */

:root {
    --primary-color: #D32F2F;
    --secondary-color: #F57C00;
    --accent-color: #388E3C;
    --dark-color: #5D4037;
    --light-color: #FFF8E1;
    --text-color: #3E2723;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: blue;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 3rem;
    font-family: garamond, serif;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.sf-logo {
    height: 60px;
    margin-right: 10px;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Desktop navigation - hide on mobile */
.nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: blue;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hide mobile navigation on desktop by default */
.nav-mobile {
    display: none;
}

/* Hide mobile toggle on desktop by default */
.nav-mobile-toggle {
    display: none;
}

/* Mobile Navigation Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: blue;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 1001;
}

.nav-mobile.active {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.nav-mobile ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
}

.nav-mobile ul li {
    text-align: center;
    padding: 0.5rem 0;
}

.nav-mobile ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: blue;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-mobile ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.hero-text {
    justify-content: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    color: blue;
    max-width: 600px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Styles */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.5rem;
    color: blue;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
.about-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Section */
.menu-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.menu-category h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.menu-items {
    display: grid;
    gap: 1rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    transition: transform 0.2s;
}

.menu-item:hover {
    transform: translateX(5px);
}

.menu-item-info h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.menu-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Promotions & Events Section */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.promotion-card, .event-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s;
}

.promotion-card:hover, .event-card:hover {
    transform: translateY(-5px);
}

.promotion-card h3, .event-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.promotion-card p, .event-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

.event-date {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-link:hover {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Force hide all desktop navigation elements on mobile */
    .nav-desktop, .nav-desktop ul {
        display: none !important;
    }

    /* Force show mobile elements on mobile */
    .nav-mobile-toggle {
        display: flex !important;
    }

    .nav-mobile {
        display: block !important;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .promotions-grid {
        grid-template-columns: 1fr;
    }
}

/* Hamburger menu animation */
.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Additional mobile fixes */
@media (max-width: 768px) {
    /* Ensure header has relative positioning for mobile nav */
    header {
        position: relative;
    }
    
    /* Force hide desktop nav on mobile */
    .nav-desktop {
        display: none !important;
    }
    
    /* Force show mobile toggle on mobile */
    .nav-mobile-toggle {
        display: flex !important;
    }
    
    /* Force show mobile nav container on mobile (but keep it collapsed) */
    .nav-mobile {
        display: block !important;
    }
}