/* ==================== VARIABLES ==================== */
:root {
    --primary: #626b2e;
    --secondary: #00d084;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #f0f0f0;
    }

    :root {
        --dark: #f0f0f0;
        --light: #1a1a1a;
        --gray: #999;
    }
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .header {
        background: #0a0a0a;
        border-bottom-color: #333;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    margin-left: 3rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #505826;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 107, 46, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
    }

    .auth-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .btn {
        flex: 1;
        font-size: 0.85rem;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    background:
        linear-gradient(135deg, rgba(98, 107, 46, 0.9) 0%, rgba(80, 88, 38, 0.9) 100%),
        url('/background.jpg') center / cover no-repeat;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    border-radius: 0.5rem;
    color: var(--dark);
}

.search-input::placeholder {
    color: var(--gray);
}

.location-info {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .search-box {
        flex-direction: column;
    }
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 4rem 0;
    background: var(--light);
}

.features h2,
.restaurants h2,
.faq h2,
.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
    .features {
        background: #1c1b1b;
    }

    .feature-card {
        background: #2a2a2a;
    }
}

/* ==================== RESTAURANTS SECTION ==================== */
.restaurants {
    padding: 4rem 0;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.restaurant-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.restaurant-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.restaurant-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.restaurant-info {
    padding: 1.5rem;
}

.restaurant-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.restaurant-rating {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.restaurant-category {
    color: var(--gray);
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .restaurant-card {
        background: #2a2a2a;
    }
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 4rem 0;
    background: var(--light);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light);
}

.faq-question::after {
    content: '▼';
    font-size: 0.75rem;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background: var(--primary);
    color: white;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

@media (prefers-color-scheme: dark) {
    .faq {
        background: #1c1b1b;
    }

    .faq-item {
        background: #2a2a2a;
    }

    .faq-question {
        background: #2a2a2a;
    }

    .faq-question:hover {
        background: #3a3a3a;
    }
}

/* ==================== CTA SECTION ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #505826 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1c1b1b;
    color: #f0f0f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #999;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #666;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .features h2,
    .restaurants h2,
    .faq h2,
    .cta h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

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

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

.feature-card,
.restaurant-card,
.faq-item {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
