/* =============================================
   SHARED STYLES — Вкусно за 15 минут
   Design: Food-tech lifestyle, light & warm
   Palette: White bg, orange #FF6B35, yellow #FFB800
   Typography: Poppins (headings) + Inter (body)
   Mobile-first responsive design
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #FF6B35;
    --orange-l: #FF8C5A;
    --orange-d: #E55A24;
    --yellow: #FFB800;
    --green: #4CAF50;
    --bg: #FFFBF7;
    --bg2: #FFF5EC;
    --bg3: #FFF0E0;
    --text: #1A1A2E;
    --text-2: #4A4A6A;
    --text-muted: #8A8AA0;
    --border: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 6px; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 100px;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 20px rgba(255,107,53,0.35); }
.btn-primary:hover { background: var(--orange-d); box-shadow: 0 8px 30px rgba(255,107,53,0.45); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }

/* ── Section labels ── */
.section-label {
    display: inline-block; font-family: 'Poppins', sans-serif;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--orange);
    background: rgba(255,107,53,0.1); border-radius: 100px;
    padding: 4px 12px; margin-bottom: 0.75rem;
}

/* ── Fade-in ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }
.fade-in-delay-5 { transition-delay: 0.40s; }

/* ── Navigation ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 64px; background: rgba(255,251,247,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; color: var(--text);
    flex-shrink: 0;
}
.nav-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
    padding: 7px 12px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 500; color: var(--text-2);
    transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg2); color: var(--orange); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; z-index: 999; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; padding: 12px 0; font-size: 1rem; font-weight: 600;
    color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Page header (category pages) ── */
.page-header {
    padding: 88px 0 48px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
    border-bottom: 1px solid var(--border);
}
.page-header-inner { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.page-header-emoji { font-size: 2.5rem; }
.page-header h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.page-header h1 span { color: var(--orange); }
.page-header p { color: var(--text-2); font-size: 0.95rem; margin-top: 0.4rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: var(--text-muted); }

/* ── Recipe cards grid (category pages) ── */
.recipes-section { padding: 48px 0 80px; }
.recipes-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Unified Recipe Card ── */
.recipe-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.recipe-card > a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.recipe-img { position: relative; overflow: hidden; flex-shrink: 0; }
.recipe-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; display: block; }
.recipe-card:hover .recipe-img img { transform: scale(1.05); }
.recipe-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--orange); color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 100px;
    white-space: nowrap;
}
.recipe-body { padding: 1rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.recipe-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.recipe-meta-item { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.recipe-title { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; }
.recipe-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; margin-bottom: 0.9rem; flex: 1; }
.recipe-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.recipe-difficulty { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.diff-easy { background: rgba(76,175,80,0.12); color: var(--green); }
.diff-medium { background: rgba(255,184,0,0.12); color: #B8860B; }
.diff-hard { background: rgba(255,107,53,0.12); color: var(--orange); }
.recipe-link {
    font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600;
    color: var(--orange); background: rgba(255,107,53,0.08);
    padding: 6px 14px; border-radius: 100px; white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.recipe-card:hover .recipe-link { background: var(--orange); color: #fff; }

/* ── Category page hero ── */
.cat-hero {
    padding: 88px 0 48px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.cat-hero-inner { max-width: 600px; margin: 0 auto; padding: 0 1rem; }
.cat-hero-emoji { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.cat-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900; letter-spacing: -0.03em;
    color: var(--text); margin-bottom: 0.6rem;
}
.cat-hero-title span { color: var(--orange); }
.cat-hero-desc { font-size: 0.95rem; color: var(--text-2); line-height: 1.65; }

/* ── Category recipes grid (drinks page) ── */
.cat-recipes-section { padding: 48px 0 80px; }
.cat-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.recipe-card-cat {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
    display: block; text-decoration: none; color: inherit;
}
.recipe-card-cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rcc-img-wrap { position: relative; overflow: hidden; }
.rcc-img-wrap img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; display: block; }
.recipe-card-cat:hover .rcc-img-wrap img { transform: scale(1.05); }
.rcc-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--orange); color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 100px;
}
.rcc-body { padding: 1rem 1rem 1.1rem; }
.rcc-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.rcc-meta span { font-size: 0.75rem; color: var(--text-muted); }
.rcc-title { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; }
.rcc-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; margin-bottom: 0.9rem; }
.rcc-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rcc-diff { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.rcc-btn {
    font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600;
    color: var(--orange); background: rgba(255,107,53,0.08);
    padding: 6px 14px; border-radius: 100px;
    transition: background 0.2s, color 0.2s;
}
.recipe-card-cat:hover .rcc-btn { background: var(--orange); color: #fff; }

/* ── Footer ── */
footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 40px 0 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; color: #fff; }
.footer-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--orange), var(--yellow)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; font-size: 0.78rem; text-align: center; }

/* ── Responsive — Tablet ── */
@media (max-width: 1024px) {
    .recipes-grid-page { grid-template-columns: repeat(2, 1fr); }
    .cat-recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive — Mobile ── */
@media (max-width: 768px) {
    .container { padding: 0 0.875rem; }
    nav { height: 60px; }
    .nav-inner { height: 60px; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .mobile-menu { top: 60px; }

    .page-header { padding: 76px 0 36px; }
    .page-header-emoji { font-size: 2rem; }
    .cat-hero { padding: 76px 0 36px; }
    .cat-hero-emoji { font-size: 2.5rem; }

    /* 1 колонка на мобильном */
    .recipes-grid-page { grid-template-columns: 1fr; gap: 1rem; }
    .cat-recipes-grid { grid-template-columns: 1fr; gap: 1rem; }

    .recipe-img img { height: 220px; }
    .rcc-img-wrap img { height: 220px; }

    .recipes-section { padding: 32px 0 60px; }
    .cat-recipes-section { padding: 32px 0 60px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    .recipe-img img { height: 200px; }
    .rcc-img-wrap img { height: 200px; }
    .recipe-title { font-size: 0.9rem; }
    .rcc-title { font-size: 0.9rem; }
}
