/* Lmakla — Simply Recipes Clone | Red Velvet Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --red: #c0392b;
    --red-dark: #8b1a2b;
    --red-soft: #fff5f5;
    --red-accent: #e74c3c;
    --white: #ffffff;
    --off-white: #fafafa;
    --bg: #f7f7f7;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size: 18px;
}
body {
    font-family: var(--font-body);
    font-size: var(--font-size);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ====== HEADER ====== */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-top { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-logo a { font-family: var(--font-display); font-size: 1.8rem; color: var(--red); font-weight: 700; letter-spacing: -0.5px; }
.header-logo a:hover { color: var(--red-dark); }
.search-form { display: flex; align-items: center; flex: 1; max-width: 400px; }
.search-form input {
    width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: 6px 0 0 6px;
    font-size: 0.85rem; font-family: var(--font-body); outline: none; background: var(--off-white);
}
.search-form input:focus { border-color: var(--red); background: var(--white); }
.search-form button {
    padding: 10px 16px; background: var(--red); color: var(--white); border: none; border-radius: 0 6px 6px 0; cursor: pointer;
    font-size: 0.85rem; transition: background 0.2s;
}
.search-form button:hover { background: var(--red-dark); }
.header-social { display: flex; gap: 12px; }
.header-social a {
    width: 34px; height: 34px; border-radius: 50%; background: var(--off-white);
    display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.8rem; transition: all 0.2s;
}
.header-social a:hover { background: var(--red); color: var(--white); }
.header-nav { background: var(--white); }
.main-nav ul { display: flex; list-style: none; gap: 0; }
.main-nav ul li a {
    display: block; padding: 12px 20px; font-size: 0.8rem; font-weight: 600; color: var(--text);
    text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.2s; border-bottom: 2px solid transparent;
}
.main-nav ul li a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ====== BREADCRUMBS ====== */
.breadcrumbs { padding: 16px 0; background: var(--white); border-bottom: 1px solid var(--border-light); }
.breadcrumbs span { font-size: 0.75rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* ====== RECIPE HEADER ====== */
.recipe-header { padding: 28px 0 0; background: var(--white); }
.recipe-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.recipe-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.recipe-author { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.author-avatar { border-radius: 50%; object-fit: cover; }
.author-name { font-size: 0.85rem; color: var(--text-light); }
.author-name strong { color: var(--text); }
.recipe-date { font-size: 0.75rem; color: var(--text-muted); }
.recipe-ratings { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--red); font-size: 0.85rem; letter-spacing: 2px; }
.rating-num { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }
.recipe-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.btn-save, .btn-rate, .btn-print {
    padding: 8px 18px; border-radius: 6px; border: 1px solid var(--border); background: var(--white);
    font-size: 0.8rem; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.btn-save:hover, .btn-rate:hover, .btn-print:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.social-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.social-share span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.social-share a {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.75rem; transition: all 0.2s;
}
.social-share a:hover { border-color: var(--red); background: var(--red); color: var(--white); }

/* ====== HERO IMAGE ====== */
.recipe-hero-image { padding: 20px 0; background: var(--white); }
.hero-img-wrapper { position: relative; border-radius: 12px; overflow: hidden; }
.hero-img { width: 100%; height: auto; display: block; max-height: 600px; object-fit: cover; }
.hero-img-credit {
    position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.8);
    padding: 4px 12px; border-radius: 4px; font-size: 0.7rem;
}

/* ====== RECIPE CONTENT ====== */
.recipe-content { padding: 32px 0 60px; background: var(--white); }
.recipe-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }

/* INTRO */
.recipe-intro p { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 16px; }

/* SECTIONS */
.recipe-section { margin-bottom: 40px; }
.recipe-section h2 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 2px solid var(--red-soft);
}

/* INGREDIENTS */
.ingredients-card {
    background: var(--red-soft); border: 1px solid rgba(192,57,43,0.15); border-radius: 10px; padding: 24px 28px;
}
.ingredients-card h3 { font-size: 1rem; font-weight: 600; color: var(--red-dark); margin-bottom: 12px; margin-top: 16px; }
.ingredients-card h3:first-child { margin-top: 0; }
.ingredient-list { list-style: none; padding: 0; margin-bottom: 8px; }
.ingredient-list li {
    padding: 6px 0; border-bottom: 1px solid rgba(192,57,43,0.08); display: flex; gap: 6px; font-size: 0.95rem;
}
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-amount { font-weight: 600; color: var(--text); white-space: nowrap; }
.ingredient-name { color: var(--text-light); }

/* DIRECTIONS */
.direction-step {
    display: flex; gap: 20px; margin-bottom: 28px; padding: 20px; background: var(--off-white);
    border-radius: 10px; border: 1px solid var(--border-light); flex-wrap: wrap;
}
.direction-step:hover { border-color: var(--border); }
.step-number {
    flex-shrink: 0; width: 36px; height: 36px; background: var(--red); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
}
.step-content { flex: 1; min-width: 200px; }
.step-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-content p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }
.step-image { width: 100%; margin-top: 12px; }
.step-image img { width: 100%; max-width: 600px; border-radius: 8px; height: auto; }

/* NUTRITION */
.nutrition-table { width: 100%; max-width: 400px; border-collapse: collapse; margin-bottom: 8px; }
.nutrition-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
.nutrition-table td:first-child { font-weight: 500; color: var(--text-light); }
.nutri-val { font-weight: 700; color: var(--text); text-align: right; }
.nutrition-disclaimer { font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

/* TIPS */
.tips-section { background: var(--red-soft); border-radius: 10px; padding: 24px; border: 1px solid rgba(192,57,43,0.15); }
.tips-section h2 { border-bottom-color: var(--red); }
.tips-list { list-style: none; padding: 0; }
.tips-list li { padding: 8px 0; border-bottom: 1px solid rgba(192,57,43,0.1); font-size: 0.9rem; color: var(--text-light); }
.tips-list li:last-child { border-bottom: none; }
.tips-list li strong { color: var(--red-dark); }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border-radius: 8px; overflow: hidden; transition: transform 0.3s; }
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.related-card h4 { padding: 10px 0; font-size: 0.85rem; font-weight: 600; }
.related-card h4 a { color: var(--text); }
.related-card h4 a:hover { color: var(--red); }

/* ====== SIDEBAR ====== */
.sidebar-card { background: var(--off-white); border: 1px solid var(--border-light); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red-soft); }
.sidebar-author-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.sidebar-author-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.sidebar-author-bio { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.detail-list { list-style: none; }
.detail-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; font-size: 0.85rem; }
.detail-list li:last-child { border-bottom: none; }
.detail-list li span { color: var(--text-light); }
.sidebar-social { display: flex; gap: 8px; }
.sidebar-social a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: all 0.2s;
}
.sidebar-social a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ====== FOOTER ====== */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: var(--white); transition: all 0.2s;
}
.footer-social a:hover { background: var(--red); }
.footer-links h4 { font-size: 0.85rem; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links ul li a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .recipe-layout { grid-template-columns: 1fr; }
    .header-top-inner { flex-wrap: wrap; }
    .search-form { max-width: 100%; order: 3; }
    .header-social { display: none; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .main-nav ul { overflow-x: auto; white-space: nowrap; }
    .main-nav ul li a { padding: 10px 14px; font-size: 0.7rem; }
    .recipe-meta-row { flex-direction: column; align-items: flex-start; }
    .recipe-actions { flex-wrap: wrap; }
    .social-share { margin-left: 0; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .direction-step { padding: 14px; }
}