/* ===== TasteBuddy – Modern Food Blog Styles ===== */
:root {
    --coral: #e85d4c;
    --coral-dark: #d14a3a;
    --charcoal: #1a1a1a;
    --dark: #2d2d2d;
    --cream: #faf7f2;
    --warm-white: #fff9f5;
    --muted: #6b6b6b;
    --border: #eee5dc;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--charcoal);
    background: var(--warm-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--coral);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--coral);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8e0 50%, #fff5f0 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 76, 0.35);
}

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

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

/* Hero visual cards */
.hero-visual {
    position: relative;
    height: 520px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    transition: var(--transition);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card span {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card-1 {
    width: 260px;
    height: 320px;
    top: 0;
    left: 20px;
    z-index: 2;
    transform: rotate(-4deg);
}

.hero-card-2 {
    width: 240px;
    height: 280px;
    top: 80px;
    right: 10px;
    z-index: 3;
    transform: rotate(5deg);
}

.hero-card-3 {
    width: 200px;
    height: 220px;
    bottom: 20px;
    left: 80px;
    z-index: 1;
    transform: rotate(-2deg);
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 5;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ===== Recipe Grid ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

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

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.recipe-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-img img {
    transform: scale(1.08);
}

.cuisine-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cuisine-tag.indian { background: #e85d4c; }
.cuisine-tag.italian { background: #2e7d32; }
.cuisine-tag.american { background: #1565c0; }
.cuisine-tag.chinese { background: #c62828; }
.cuisine-tag.mexican { background: #ef6c00; }
.cuisine-tag.japanese { background: #6a1b9a; }
.cuisine-tag.thai { background: #00838f; }

.recipe-body {
    padding: 20px;
}

.recipe-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.recipe-body p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.recipe-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* ===== Cuisines ===== */
.cuisines {
    background: var(--cream);
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cuisine-card {
    position: relative;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}

.cuisine-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cuisine-card:hover img {
    transform: scale(1.1);
}

.cuisine-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.cuisine-overlay h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cuisine-overlay span {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== About ===== */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-bottom: 32px;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== Newsletter ===== */
.newsletter {
    background: linear-gradient(135deg, #e85d4c 0%, #d14a3a 100%);
    color: white;
}

.newsletter-box {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.newsletter-box p {
    opacity: 0.9;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.form-message {
    margin-top: 16px;
    font-size: 0.95rem;
    min-height: 24px;
}

/* ===== Footer ===== */
.footer {
    background: var(--charcoal);
    color: #ccc;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    color: white;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        height: 380px;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-card-1 { width: 180px; height: 220px; }
    .hero-card-2 { width: 160px; height: 190px; }
    .hero-card-3 { width: 140px; height: 160px; }

    .section {
        padding: 70px 0;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8e0 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.15rem;
}

/* ===== Filter Bar ===== */
.filter-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
}

/* ===== About Page ===== */
.about-page {
    padding-top: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-main p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1.1;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.about-side {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-side img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--cream);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 28px;
}

/* ===== Recipes Page ===== */
.recipes-page {
    padding-top: 40px;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-side img {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .filter-bar {
        top: 72px;
    }
    
    .filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}
