/* public/landing.css */

/* --- CSS Variables & Base Styles --- */
:root {
    --bg-color: #121212;
    --surface-color: #181818;
    --primary-accent-color: #1DB954; 
    --secondary-accent-color: #B3B3B3;
    --text-color: #FFFFFF;
    --text-secondary-color: #B3B3B3;
    --border-color: #282828;
    --border-radius: 12px;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    isolation: isolate; /* Create a stacking context to fix z-index issue */
}

h1, h2, h3, h4 {
    color: var(--text-color);
    line-height: 1.2;
}

p {
    color: var(--text-secondary-color);
    max-width: 65ch; /* Improve readability */
}

a {
    color: var(--primary-accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary-color);
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons & Links that look like buttons --- */
.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-accent-color);
    color: #000;
}
.primary-btn:hover {
    background-color: #25d366;
    transform: translateY(-2px);
    color: #000;
}
.large-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}
.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}
.secondary-btn:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}
.full-width {
    width: 100%;
}

/* --- Particle Background --- */
#particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img {
    height: 40px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary-color);
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--text-color);
}
.nav-auth {
    display: flex;
    gap: 1rem;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.hero-content .hero-headline {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.hero-content .hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 39c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM90 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM10 40c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM91 2c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2 2zM33 43v24M59 43v24M16 43v24M45 43v24M11 18v22M59 43h24M59 67h24M33 67h12M4 11h14M4 4h14M81 22h14M81 50h14M81 74h14M66 4h14M66 28h14M66 57h14M66 81h14M45 4h14M45 28h14M45 57h14M45 81h14M22 4h14M22 28h14M22 57h14M22 81h14" stroke-width="1" stroke="%231DB954" fill="none"/></svg>'), linear-gradient(to right, rgba(18,18,18,0.7), rgba(18,18,18,0));
    opacity: 0.2;
    mix-blend-mode: screen;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* --- Features Section --- */
.features-section {
    background-color: transparent;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    text-align: center;
}
.feature-icon {
    font-size: 2rem;
    color: var(--primary-accent-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- How It Works Section --- */
.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-accent-color);
}
.step-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.video-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    margin: 0 auto;
}

.how-it-works-video {
    width: 100%;
    height: auto;
    display: block;
}


/* --- Testimonials Section --- */
.testimonials-section {
    background-color: transparent;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.testimonial-card p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-color);
}
.testimonial-author {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary-accent-color);
}

/* --- Pricing Section --- */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background-color: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.pricing-card.featured {
    border-color: var(--primary-accent-color);
    transform: scale(1.05);
}
.featured-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-accent-color);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}
.pricing-card h3 {
    font-size: 1.5rem;
}
.price {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 1rem 0;
}
.price span {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: top;
}
.price span:last-child {
     font-size: 1rem;
     color: var(--text-secondary-color);
}
.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}
.pricing-card li {
    background: none;
    border: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-card li .fa-check {
    color: var(--primary-accent-color);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-section p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--surface-color);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}
.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-secondary-color);
}
.footer-links a:hover {
    color: var(--text-color);
}

/* --- NEW: Blog Page Date Headers --- */
.blog-date-header {
    width: 100%;
    grid-column: 1 / -1; /* Make it span all columns in the grid */
    font-family: var(--font-display);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.features-grid > .blog-date-header:first-of-type {
    margin-top: 0;
}

/* --- NEW: Daily Theme Header --- */
.daily-theme-header {
    width: 100%;
    grid-column: 1 / -1;
    font-size: 1.5rem;
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
    text-align: left;
}


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .hero-section, .how-it-works-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        order: 2;
    }
    .hero-image-container {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
     .hero-content .hero-headline {
        font-size: 3rem;
    }
    .hero-content .hero-subheadline {
        font-size: 1.125rem;
    }
    .video-container {
        order: 1;
    }
    .how-it-works-steps {
        order: 2;
    }
}
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
    }
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu-content {
        display: none; /* Hide the menu content by default */
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-header.open .nav-menu-content {
        display: block; /* Show it when the header is open */
    }

    .nav-links, .nav-auth {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-auth {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* FIX: Restore desktop navigation alignment */
@media (min-width: 769px) {
    .nav-menu-content {
        display: contents;
    }
}

/* FIX: Blog page transparency and text alignment */
#blog-hero .hero-content, #recipe-grid-section {
    text-align: center;
    background-color: transparent;
}
#recipe-grid-section .feature-card {
    background-color: var(--surface-color);
}
/* FIX: Center the hero subheadline on the blog page */
#blog-hero .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
}

