/* --- VARIABLES --- */
:root {
    --color-primary: #6B2E5F;
    --color-accent: #F2C05E;
    --color-text: #4A3B32;
    --color-bg: #FFF9F0;
    --color-white: #FFFFFF;
    --shadow: 0 8px 20px rgba(107, 46, 95, 0.15);
    --radius: 20px;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; color: var(--color-primary); }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; height: auto; }

/* --- NAVIGATION --- */
nav {
    background-color: var(--color-primary);
    padding: 1rem 2rem;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-text { font-family: 'Fredoka', sans-serif; font-size: 1.5rem; color: var(--color-white); font-weight: 600; letter-spacing: 1px; z-index: 1002; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--color-white); font-weight: 600; }
.nav-links a:hover { color: var(--color-accent); }

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; width: 30px; height: 25px; flex-direction: column; justify-content: space-between; z-index: 1002; }
.hamburger span { display: block; width: 100%; height: 3px; background-color: var(--color-white); border-radius: 3px; transition: 0.3s; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-primary); flex-direction: column; align-items: center; padding: 1rem 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1); z-index: 999; }
.mobile-menu a { color: var(--color-white); font-weight: 600; font-size: 1.2rem; padding: 1rem; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu.active { display: flex; animation: slideDown 0.3s ease forwards; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .logo-text { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; }
    .nav-container { justify-content: flex-end; }
    .hero h1 { font-size: 2.5rem; }
    .section-container { padding: 2rem 1rem; }
}

/* --- HOME HERO --- */
.hero { text-align: center; padding: 4rem 2rem; max-width: 800px; margin: 0 auto; }
.mimi-avatar { width: 220px; filter: drop-shadow(0 10px 0 rgba(74, 59, 50, 0.1)); margin-bottom: 1rem; transition: transform 0.3s ease; }
.mimi-avatar:hover { transform: scale(1.05) rotate(-2deg); }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }
.cta-button { display: inline-block; background-color: var(--color-accent); color: var(--color-text); padding: 12px 30px; border-radius: 50px; font-weight: bold; font-family: 'Fredoka', sans-serif; font-size: 1.2rem; border: 3px solid transparent; box-shadow: 0 5px 0 #d4a03d; }
.cta-button:hover { transform: translateY(2px); box-shadow: 0 2px 0 #d4a03d; }

/* --- SECTIONS --- */
.section-container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; display: table; margin-left: auto; margin-right: auto; }
.section-title::after { content: ''; display: block; width: 60%; height: 5px; background-color: var(--color-accent); margin: 5px auto 0; border-radius: 10px; }

/* --- RECIPE GRID --- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.recipe-card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid #efe6d5; transition: transform 0.3s ease; }
.recipe-card:hover { transform: translateY(-10px); border-color: var(--color-accent); }
.recipe-img { height: 200px; background-color: #eee; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 3rem; }
.recipe-content { padding: 1.5rem; }
.recipe-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.recipe-meta { font-size: 0.9rem; color: #888; margin-bottom: 1rem; }
.recipe-link { color: var(--color-primary); font-weight: bold; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; }

/* --- VIDEO --- */
.videos-section { background-color: #FDF2E3; border-radius: 30px; margin: 2rem; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid var(--color-white); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- RECIPE DETAIL PAGE --- */
.main-container { max-width: 900px; margin: 0 auto; padding: 2rem; }
.breadcrumbs { font-size: 0.9rem; color: #888; margin-bottom: 1.5rem; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.recipe-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); background-color: #ddd; margin-bottom: 2rem; box-shadow: var(--shadow); }
.detail-title { font-size: 3rem; text-align: center; margin-bottom: 1rem; line-height: 1.2; }
.detail-date { text-align: center; color: #888; margin-bottom: 2rem; font-style: italic; }
.recipe-story { font-size: 1.1rem; line-height: 1.8; margin-bottom: 3rem; text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Meta Bar */
.meta-bar { display: flex; justify-content: center; gap: 2rem; background: white; padding: 1.5rem; border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 2.5rem; border: 2px solid #efe6d5; }
.meta-item { text-align: center; }
.meta-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #999; font-weight: bold; }
.meta-value { font-size: 1.2rem; color: var(--color-primary); font-family: 'Fredoka', sans-serif; font-weight: 600; }

/* Recipe Box */
.recipe-box { background: var(--color-white); border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow); border-top: 8px solid var(--color-primary); }
.section-header { font-size: 1.8rem; margin-bottom: 1.5rem; border-bottom: 2px dashed #eee; padding-bottom: 0.5rem; display: inline-block; }
.ingredients-section, .instructions-section { margin-bottom: 3rem; }
.ingredients-list { list-style: none; }
.ingredients-list li { padding: 10px 0; border-bottom: 1px dotted #eee; font-size: 1.1rem; display: flex; align-items: center; }
.ingredients-list li::before { content: '✓'; display: inline-block; width: 20px; height: 20px; background: var(--color-accent); color: white; border-radius: 4px; font-size: 12px; text-align: center; line-height: 20px; margin-right: 15px; font-weight: bold; }
.instructions-list { counter-reset: step-counter; list-style: none; }
.instructions-list li { position: relative; padding-left: 50px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.instructions-list li::before { content: counter(step-counter); counter-increment: step-counter; position: absolute; left: 0; top: 0; background: var(--color-primary); color: white; width: 32px; height: 32px; border-radius: 50%; text-align: center; line-height: 32px; font-weight: bold; font-family: 'Fredoka', sans-serif; }
.print-btn { display: block; width: 200px; margin: 2rem auto 0; background-color: var(--color-accent); color: var(--color-text); padding: 15px; border-radius: 50px; border: none; font-weight: bold; text-transform: uppercase; font-size: 1rem; cursor: pointer; font-family: 'Fredoka', sans-serif; transition: 0.2s; }
.print-btn:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .meta-bar { flex-direction: column; gap: 1rem; border-radius: 20px; }
    .detail-title { font-size: 2.2rem; }
    .recipe-box { padding: 1.5rem; }
}

/* --- FOOTER --- */
footer { background-color: var(--color-text); color: var(--color-bg); text-align: center; padding: 3rem; margin-top: 4rem; }
.footer-heart { color: var(--color-accent); }