/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-cream: #f5f0e8;
    --pastel-pink: #f4d1d1;
    --pastel-yellow: #f9e79f;
    --pastel-blue: #d4e6f1;
    --pastel-green: #d5e8d4;
    --text-dark: #2c2c2c;
    --text-medium: #555;
    --accent: #8b6f47;
    --accent-light: #a68b5b;
    --border: #e0d5c0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pastel-cream);
    background-image: var(--bg-pattern);
    background-size: 200px 200px;
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-yellow) 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
.intro {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.intro h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

/* Cards Grid */
.desserts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dessert-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.dessert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    text-decoration: none;
}

.dessert-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--pastel-blue);
}

.dessert-card-content {
    padding: 1.5rem;
}

.dessert-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.dessert-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dessert-card-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.5rem;
}

.dessert-card a {
    text-decoration: none;
    color: inherit;
}

/* Recipe Cards */
.recipe-section {
    padding: 2rem 0;
}

.recipe-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.recipe-header {
    margin-bottom: 2rem;
}

.recipe-header h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recipe-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.recipe-gallery img:hover {
    transform: scale(1.05);
}

.recipe-content h3 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.recipe-content h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ingredients ul,
.recipe-content ul,
.recipe-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.recipe-content li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.recipe-content strong {
    color: var(--text-dark);
}

/* Warning styles - will be applied via JavaScript */
.warning-item {
    background: #fff3cd !important;
    padding: 0.75rem !important;
    border-left: 4px solid #ffc107 !important;
    margin: 0.5rem 0 !important;
    border-radius: 4px !important;
    margin-left: -1rem !important;
    padding-left: 1rem !important;
}

/* Technique Cards */
.techniques-section,
.utensils-section,
.tips-section {
    padding: 2rem 0;
}

.technique-card,
.utensil-card,
.tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technique-card:hover,
.utensil-card:hover,
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

.technique-card h2,
.utensil-card h2,
.tip-card h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.technique-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Newsletter Form */
.newsletter {
    background: #fff;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.newsletter h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.cta-button {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* About Section */
.about-section {
    padding: 2rem 0;
}

.about-section article {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.about-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 2rem 0;
}

.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--accent);
}

/* Policy Section */
.policy-section {
    padding: 2rem 0;
}

.policy-section article {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.policy-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 80px 2rem 2rem;
        box-shadow: -2px 0 10px var(--shadow);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        color: var(--accent);
        font-weight: 600;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .desserts-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ensure all container content is single column on mobile */
    .container {
        display: flex;
        flex-direction: column;
    }

    .container > * {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Warning Styles */
.recipe-content li:has-text("⚠️"),
.technique-content li:has-text("⚠️") {
    background: #fff3cd;
    padding: 0.75rem;
    border-left: 4px solid #ffc107;
    margin: 0.5rem 0;
    border-radius: 4px;
}

/* Background Pattern (will be set by JS) */
body.pattern-1 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

body.pattern-2 {
    background-image: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

body.pattern-3 {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 20px 20px;
}

