/* ============================================================
   Crocson v2 — style.css
   Faithful recreation of crocson.com visual identity
   Palette: warm beige · cream · dark brown · muted red
   Fonts: Bricolage Grotesque (titles) · Instrument Sans (body)
   ============================================================ */

/* --- 1. Variables ----------------------------------------- */
:root {
    --bg-main:    #CCB490;
    --bg-light:   #F5F4DF;
    --text-dark:  #644F32;
    --accent-red: #B15D5D;
    --font-title: 'Bricolage Grotesque', sans-serif;
    --font-body:  'Instrument Sans', sans-serif;
}

/* --- 2. Reset & Base -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    margin: 0;
    padding-top: 80px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- 3. Animations ---------------------------------------- */
.fade-in {
    animation: fadeInAnimation 1.2s ease-out forwards;
    opacity: 0;
}
@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 4. Header -------------------------------------------- */
.main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: transparent;
    transition: all 0.4s ease-in-out;
}

.main-header.scrolled {
    background-color: var(--bg-main);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    padding: 0 25px;
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
}

.logo {
    width: 55px;
    height: auto;
    flex-shrink: 0;
}

/* Tag pills rail — hidden until scrolled */
.nav-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.main-header.scrolled .nav-filter-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tags-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.tags-slider::-webkit-scrollbar { display: none; }
.tags-slider:active { cursor: grabbing; }

/* Auth pill (replaces FR language pill) */
.auth-pill {
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 14px;
    margin-left: auto;
    transition: background-color 0.2s ease;
}
.auth-pill:hover { background-color: var(--text-dark); color: var(--bg-light); }

/* --- 5. Hero ---------------------------------------------- */
.hero-split {
    display: flex;
    height: calc(100vh - 80px);
    padding: 0 60px;
    align-items: center;
    overflow: visible;
}

.hero-left, .hero-right {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tag pills row in hero */
.hashtags-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.hashtags-nav.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.tags-container { display: flex; gap: 10px; flex-wrap: wrap; }

.tag-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    line-height: 1;
    background-color: var(--text-dark);
    color: var(--bg-light);
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
}
.tag-nav:hover, .tag-nav.active {
    background-color: var(--accent-red);
    color: white;
}

/* Search pill */
.search-tag-container {
    display: flex;
    align-items: center;
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 10px 18px;
    border-radius: 50px;
    transition: 0.3s ease;
    cursor: text;
    flex-shrink: 0;
}
.search-tag-container:hover { background-color: var(--accent-red); }

.search-input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bg-light);
    width: 130px;
}
.search-input::placeholder { color: rgba(245,244,223,0.6); font-style: italic; font-weight: 400; }

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bg-light);
    display: flex;
    align-items: center;
    margin-left: 8px;
    transition: 0.3s;
}
.search-btn:hover { transform: scale(1.2); }

/* H1 */
h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 0.95;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.intro-text p { font-size: 1.2rem; margin-bottom: 40px; }

/* Stats row */
.stats-social { display: flex; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.stat-item { font-size: 1rem; }
.stat-item strong {
    display: inline-block;
    font-size: 1.5rem;
    font-family: var(--font-title);
    margin-right: 5px;
}

/* Big CROCSON display text + burger */
.brand-footer { position: relative; }

.big-crocson {
    font-family: var(--font-title);
    font-size: 9rem;
    margin: 0;
    z-index: 2;
    position: relative;
    top: -50px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-dark);
}

.burger-shadow {
    position: absolute;
    width: 300px;
    left: -20px;
    bottom: -70px;
    z-index: 1;
    opacity: 0.8;
}

.crocson-btns-stack {
    position: absolute;
    top: 80%;
    left: 32%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.btn-croc {
    width: 220px;
    padding: 10px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: center;
    transition: 0.3s ease;
    background-color: var(--text-dark);
    color: var(--bg-main);
    display: block;
}
.btn-croc:hover {
    background-color: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

/* --- 6. Hero Right — Shorts Grid -------------------------- */
.hero-right {
    flex: 1;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shorts-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 3fr;
    grid-template-rows: 1.5fr 2fr 3fr 1.5fr;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.short-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    background: var(--text-dark);
}

.short-video-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.short-video-preview video,
.short-video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-actions {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.short-item:hover .short-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Grid placement — matches crocson.com exactly */
.item-1 { grid-column: 2 / 3; grid-row: 1 / 3; }
.item-2 { grid-column: 3 / 4; grid-row: 2 / 4; }
.item-3 { grid-column: 1 / 3; grid-row: 3 / 5; }

/* Scroll down arrow */
.scroll-arrow {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    font-size: 2.5rem;
    color: var(--text-dark);
    opacity: 0.6;
    font-family: serif;
    animation: bounceDown 2s infinite ease-in-out;
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0);   opacity: 0.3; }
    50%       { transform: translateY(8px); opacity: 0.8; }
}

/* --- 7. Pill Buttons --------------------------------------- */
.btn-pill {
    flex: 1;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: none;
    backdrop-filter: blur(6px);
    transition: 0.3s;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-pill.btn-dark  { background-color: rgba(0,0,0,0.55); color: white; }
.btn-pill.btn-light { background-color: rgba(245,244,223,0.9); color: #333; }
.btn-pill.btn-red   { background-color: var(--accent-red); color: white; }
.btn-pill:hover     { opacity: 0.85; transform: scale(1.04); }

/* --- 8. Recipe Section ------------------------------------ */
.recipes-display-section {
    position: relative;
    padding: 50px 0 60px;
    overflow: hidden;
}

.recipes-invite {
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0 auto 28px;
    max-width: 860px;
    padding: 0 40px;
    opacity: 0.75;
}
.recipes-invite span {
    background-color: var(--text-dark);
    color: var(--bg-light);
    border-radius: 50px;
    padding: 2px 12px;
    font-size: 1rem;
    vertical-align: middle;
    margin: 0 3px;
    display: inline-block;
}

/* 3-column recipe grid */
.recipes-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1020px;
    margin: 0 auto;
    padding: 10px 40px 20px;
    box-sizing: border-box;
    user-select: none;
}

.recipe-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Portrait 3:4 image */
.recipe-preview {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--bg-light);
}

.recipe-preview img,
.recipe-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transition: transform 0.4s ease;
}
.recipe-preview:hover img,
.recipe-preview:hover video { transform: scale(1.04); }

/* Overlay with buttons — appears on hover */
.recipe-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding: 0 14px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.recipe-preview:hover .recipe-overlay { opacity: 1; }

.recipe-name {
    font-family: var(--font-title);
    font-size: 1rem;
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.recipe-tags-bottom {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-mini {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}
.tag-mini:hover { background-color: var(--accent-red); }

/* Tag filter row (above recipe grid) */
.tag-filter-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    max-width: 860px;
    padding: 0 40px;
}

/* --- 9. Social CTA Section -------------------------------- */
.social-cta-section {
    background-color: var(--bg-main);
    padding: 100px 80px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.split-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
}

.split-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.fake-hero-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtext { font-size: 1.2rem; max-width: 380px; line-height: 1.6; }

.btn-yt-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--text-dark);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-yt-subscribe:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}
.yt-icon { width: 25px; height: auto; }

.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 60px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-title);
    color: var(--text-dark);
}

.social-links-list { display: flex; flex-direction: column; gap: 20px; }

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-title);
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.social-item:hover { color: var(--accent-red); }

.yt-pivot-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.burger-circle {
    width: 200px;
    height: 200px;
    background-color: #FFD28D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}
.burger-circle img { width: 80%; height: auto; object-fit: contain; }
.burger-circle:hover,
.yt-pivot-link:hover .burger-circle {
    transform: scale(1.05);
    background-color: var(--accent-red);
}
.yt-pivot-link:hover .platform-name { color: var(--accent-red); }

.dot-icon {
    width: 60px;
    height: 60px;
    background-color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.dot-icon img  { width: 28px; height: 28px; filter: brightness(0) invert(1); object-fit: contain; }
.dot-icon svg  { width: 28px; height: 28px; color: white; }
.social-item:hover .dot-icon,
.yt-pivot-link:hover .dot-icon { transform: scale(1.1); background-color: var(--accent-red); }

/* Stats discrete bar at bottom of CTA section */
.stats-discreet-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(100,79,50,0.15);
    padding-top: 30px;
    width: 100%;
    opacity: 0.65;
    flex-wrap: wrap;
}
.stats-discreet-bar .stat-item { font-size: 0.95rem; }
.stats-discreet-bar .stat-item strong { font-size: 1.3rem; }

/* --- 10. Footer ------------------------------------------- */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 50px 80px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {}
.footer-brand p { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }

.footer-social-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.footer-social-icon:hover { background: var(--accent-red); transform: scale(1.1); }
.footer-social-icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-social-icon svg { width: 18px; height: 18px; color: white; }

.footer-disclaimer {
    max-width: 400px;
    text-align: center;
}
.footer-disclaimer p { font-size: 0.8rem; line-height: 1.6; opacity: 0.65; font-style: italic; }

.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a { color: white; font-size: 0.9rem; opacity: 0.8; transition: 0.3s; }
.footer-links a:hover { color: #FFD28D; opacity: 1; }

.footer-bottom-bar {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.78rem;
    opacity: 0.55;
    text-align: center;
}

/* --- 11. Recipes listing page ----------------------------- */
.page-header {
    padding: 40px 60px 10px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 1060px;
    margin: 0 auto 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-count {
    font-size: 0.9rem;
    opacity: 0.7;
}

.sort-select {
    background: var(--text-dark);
    color: var(--bg-light);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
}
.sort-select:hover { background: var(--accent-red); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 50px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--text-dark);
    color: var(--bg-light);
    transition: background 0.2s ease;
}
.page-link:hover, .page-link.active { background: var(--accent-red); color: white; }

/* --- 12. Recipe detail page ------------------------------- */
.recipe-page-wrap { max-width: 860px; margin: 0 auto; padding: 40px 40px 80px; }

.recipe-page-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.recipe-short-wrap {
    width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: var(--text-dark);
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.recipe-short-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.recipe-info-block { display: flex; flex-direction: column; gap: 16px; }

.recipe-page-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.recipe-page-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text-dark);
}

.recipe-page-desc { font-size: 1.05rem; line-height: 1.7; opacity: 0.8; }

.recipe-meta-row {
    display: flex;
    gap: 0;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
}

.recipe-meta-cell {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    border-right: 1px solid rgba(100,79,50,0.12);
}
.recipe-meta-cell:last-child { border-right: none; }

.meta-val {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1;
}

.meta-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(100,79,50,0.55);
    margin-top: 4px;
}

/* Servings adjuster */
.servings-adj {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.servings-btn {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--text-dark);
    color: var(--bg-light);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; transition: background 0.2s ease;
}
.servings-btn:hover { background: var(--accent-red); }
#servings-count { font-family: var(--font-title); font-size: 1.2rem; font-weight: 900; min-width: 20px; text-align: center; }

.recipe-action-row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-action {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    background: var(--text-dark); color: var(--bg-light);
    cursor: pointer; border: none; transition: 0.25s ease;
}
.btn-action:hover { background: var(--accent-red); }
.btn-action.active { background: var(--accent-red); color: white; }

/* Badges */
.badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    background: var(--text-dark); color: var(--bg-light);
}

/* Ingredients */
.recipe-section { margin-bottom: 36px; }
.recipe-section-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(100,79,50,0.15);
}

.section-actions { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.ingredients-list { display: flex; flex-direction: column; gap: 6px; }

.ingredient-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: 50px;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.ingredient-item:hover { background: rgba(245,244,223,0.7); }
.ingredient-item.checked { opacity: 0.4; }
.ingredient-item.checked .ing-name { text-decoration: line-through; }

.ing-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(100,79,50,0.3);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.ingredient-item.checked .ing-check { background: var(--text-dark); border-color: var(--text-dark); }

.ing-qty { font-family: var(--font-title); font-weight: 900; font-size: 0.9rem; min-width: 50px; flex-shrink: 0; }
.ing-unit { font-size: 0.82rem; opacity: 0.6; min-width: 36px; flex-shrink: 0; }
.ing-name { font-size: 0.95rem; }

/* Steps */
.steps-list { display: flex; flex-direction: column; gap: 12px; }

.step-item {
    display: flex; gap: 16px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    border-left: 4px solid var(--text-dark);
    transition: background 0.2s ease;
}
.step-item:hover { background: rgba(245,244,223,0.7); }

.step-num {
    flex-shrink: 0;
    width: 34px; height: 34px;
    background: var(--text-dark);
    color: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-title); font-weight: 900; font-size: 0.9rem;
}

.step-text { font-size: 1rem; line-height: 1.7; padding-top: 4px; }

/* Nutrition */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.nutrition-cell {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}
.nutrition-val { font-family: var(--font-title); font-size: 1.6rem; font-weight: 900; color: var(--text-dark); line-height: 1; }
.nutrition-unit { font-size: 0.7rem; opacity: 0.6; }
.nutrition-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; margin-top: 4px; }

/* Comments */
.comments-section { margin-top: 40px; padding-top: 30px; border-top: 2px solid rgba(100,79,50,0.15); }

.comment-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar-ph {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--text-dark); color: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-title); font-weight: 900; font-size: 0.9rem;
    flex-shrink: 0;
}
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-user { font-family: var(--font-title); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; }
.comment-date { font-size: 0.72rem; opacity: 0.55; }
.comment-stars { display: flex; gap: 2px; }
.star { color: var(--accent-red); font-size: 0.85rem; }
.star.empty { color: rgba(100,79,50,0.25); }
.comment-body { font-size: 0.95rem; line-height: 1.6; opacity: 0.85; }
.comment-photo { margin-top: 10px; border-radius: 12px; max-height: 180px; object-fit: cover; }

/* Comment form */
.comment-form-wrap {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}
.comment-form-wrap h3 { font-family: var(--font-title); font-size: 1rem; text-transform: uppercase; margin-bottom: 14px; }

.form-field { margin-bottom: 12px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; margin-bottom: 5px; }
.form-input {
    width: 100%; padding: 10px 16px;
    background: var(--bg-main); border: none; outline: none;
    border-radius: 50px; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-dark);
    transition: box-shadow 0.2s ease;
}
.form-input:focus { box-shadow: 0 0 0 2px var(--text-dark); }
.form-input::placeholder { opacity: 0.45; }
textarea.form-input { border-radius: 16px; resize: vertical; min-height: 90px; }

.star-rating-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.4rem; color: rgba(100,79,50,0.25); cursor: pointer; transition: color 0.2s; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--accent-red); }

/* Breadcrumbs */
.breadcrumbs {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    opacity: 0.6; padding: 12px 0; flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent-red); }
.breadcrumb-sep { opacity: 0.4; }

/* "Related recipes" section */
.related-section { padding: 40px 0; }

/* Login prompt box */
.login-prompt {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.login-prompt p { margin-bottom: 14px; font-size: 1rem; }

/* No results */
.no-results { text-align: center; padding: 60px 20px; opacity: 0.6; }
.no-results-icon { font-size: 3rem; margin-bottom: 12px; }

/* Login prompt popup */
.login-prompt-popup {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 18px 20px 16px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-width: 280px;
    text-align: center;
}
.login-prompt-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.login-prompt-popup p {
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.login-prompt-btns {
    display: flex; gap: 8px;
    justify-content: center; align-items: center; flex-wrap: wrap;
}
.login-prompt-close {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(100,79,50,0.12); color: var(--text-dark);
    font-size: 1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; flex-shrink: 0;
    transition: background 0.2s ease;
}
.login-prompt-close:hover { background: var(--accent-red); color: #fff; }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--text-dark); color: var(--bg-light);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap; opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- 13. Responsive: Tablet (≤1024px) --------------------- */
@media (max-width: 1024px) {
    .header-container { padding: 0 15px; }

    .hero-split { padding: 0 30px; height: auto; padding-top: 30px; padding-bottom: 40px; }
    .big-crocson { font-size: 6rem; }
    .hero-right { height: 50vw; min-height: 380px; padding: 10px; }

    .shorts-grid {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px; height: 100%;
    }
    .item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
    .item-2 { grid-column: 2 / 3; grid-row: 1 / 3; }
    .item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
    .short-item { height: 100%; }

    .recipes-slider { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
    .recipes-invite { max-width: 680px; }

    .social-cta-section { padding: 60px 40px 40px; gap: 50px; }
    .burger-circle { width: 180px; height: 180px; }
    .main-footer { padding: 40px; }

    .recipe-page-wrap { padding: 30px 30px 60px; }
    .recipe-page-hero { grid-template-columns: 1fr; }
    .recipe-short-wrap { width: 100%; max-width: 280px; margin: 0 auto; }
    .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 14. Responsive: Mobile (≤768px) ---------------------- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .header-container { padding: 0 12px; }

    .nav-filter-wrapper {
        position: fixed;
        top: 60px; left: 0;
        width: 100%;
        background-color: var(--bg-main);
        padding: 8px 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .main-header.scrolled .nav-filter-wrapper {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    h1 { font-size: 2.2rem; }
    .intro-text p { font-size: 1rem; margin-bottom: 20px; }
    .stats-social { gap: 15px; margin-bottom: 30px; }
    .big-crocson { font-size: 4.5rem; top: -30px; }
    .burger-shadow { width: 180px; bottom: -40px; left: -10px; }
    .crocson-btns-stack { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 10px; margin-bottom: 30px; }
    .btn-croc { width: auto; padding: 10px 20px; }

    .hero-right { padding: 0; height: 60vw; min-height: 280px; }
    .shorts-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
    .item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
    .item-2 { grid-column: 2 / 3; grid-row: 1 / 3; }
    .item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }

    .recipes-slider { grid-template-columns: 1fr; max-width: 380px; padding: 10px 20px 15px; gap: 14px; }
    .recipes-invite { font-size: 1.1rem; padding: 0 20px; }
    .tag-filter-row { padding: 0 20px; }
    .page-header { padding: 30px 20px 10px; }
    .sort-row { padding: 0 20px; }

    .social-cta-section { padding: 50px 20px 30px; gap: 40px; }
    .split-container { flex-direction: column; align-items: flex-start; gap: 40px; }
    .fake-hero-title { font-size: 1.8rem; }
    .hero-subtext { font-size: 1rem; }
    .btn-yt-subscribe { padding: 14px 24px; font-size: 0.85rem; }
    .split-right { flex-direction: column; align-items: flex-start; gap: 30px; width: 100%; }
    .burger-circle { width: 140px; height: 140px; }
    .center-content { flex-direction: row; align-items: center; gap: 20px; }
    .stats-discreet-bar { flex-wrap: wrap; gap: 20px; justify-content: flex-start; }

    .main-footer { padding: 30px 20px; }
    .footer-content { flex-direction: column; gap: 20px; align-items: flex-start; }
    .footer-links { align-items: flex-start; }

    .recipe-page-wrap { padding: 20px 16px 60px; }
    .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
    .scroll-arrow { display: none; }
}

@media (max-width: 400px) {
    h1 { font-size: 1.8rem; }
    .big-crocson { font-size: 3.5rem; }
    .recipes-slider { max-width: 100%; }
}

/* --- 15. Print -------------------------------------------- */
@media print {
    .main-header, .main-footer, .recipe-action-row, .comments-section,
    .related-section, .scroll-arrow, .btn-action { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .recipe-page-title, h1, h2 { color: #000; }
}
