/* =========================================================================
   Discover page styles — lifted verbatim from design/hog_discover_page_final.html
   Every selector scoped under `.discover-page` so the lifted CSS can't leak
   into other pages or collide with existing site styles. The mockup's
   global rules (body, nav, .logo, .navlinks, .navlink*, footer, .foot,
   :root) are intentionally omitted — the repo's base.html provides the
   nav + footer + body background.
   ========================================================================= */

.discover-page {
    /* Tokens scoped here so the page sits on the warm dark surface even
       inside the existing site shell, without changing any other route. */
    --d-black:       #0E0E0E;
    --d-base:        #0E0C09;
    --d-surface:     #1A1711;
    --d-raised:      #231F16;
    --d-gold:        #E8B400;
    --d-deep-gold:   #C99700;
    --d-bone:        #F5F3EE;
    --d-steel:       #8E8A82;
    --d-dim:         #A39C8E;
    --d-border:      #2C2820;
    --d-border-soft: #211D15;
    --d-red:         #CE1126;
    --d-green:       #16A75C;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 96px;
    color: var(--d-bone);
    font-family: 'Space Grotesk', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: transparent;
}

.discover-page .eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--d-gold);
}

/* ---------- Photo placeholder + frame ---------------------------------- */
.discover-page .photo {
    position: relative;
    background: linear-gradient(135deg, #211c14, #13110b);
    border: 1px solid var(--d-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discover-page .photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discover-page .photo .ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: #544e42;
}
.discover-page .photo .ph svg {
    width: 30px; height: 30px;
    stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.discover-page .photo .ph span {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---------- Meta row + buttons ----------------------------------------- */
.discover-page .meta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 18px 0;
    flex-wrap: wrap;
}
.discover-page .meta .mi {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--d-dim);
}
.discover-page .meta .mi svg {
    width: 16px; height: 16px;
    stroke: var(--d-gold); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.discover-page .meta .mi b { color: var(--d-bone); font-weight: 600; }

.discover-page .ctas {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.discover-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s;
}
.discover-page .btn svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.discover-page .btn.primary {
    background: var(--d-gold);
    color: var(--d-black);
    border: 1px solid var(--d-gold);
}
.discover-page .btn.primary:hover {
    background: var(--d-deep-gold);
    border-color: var(--d-deep-gold);
    transform: translateY(-2px);
}
.discover-page .btn.ghost {
    background: transparent;
    border: 1px solid var(--d-border);
    color: var(--d-bone);
}
.discover-page .btn.ghost:hover {
    border-color: var(--d-gold);
    color: var(--d-gold);
    transform: translateY(-2px);
}

/* ---------- HERO — split (everyday default) ---------------------------- */
.discover-page .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0 44px;
    border-bottom: 1px solid var(--d-border-soft);
    margin-bottom: 12px;
}

/* ---------- Scroll cue — bouncing chevron pair, fixed bottom-right ----- */
.discover-page .scroll-cue {
    position: fixed;
    bottom: 32px;
    right: 96px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    animation:
        scroll-cue-fadein 0.5s ease forwards 1.8s,
        scroll-cue-bounce 2.2s ease-in-out infinite 1.8s;
    transition: opacity 0.5s ease;
}
.discover-page .scroll-cue:hover svg { opacity: 1 !important; }
.discover-page .scroll-cue.is-hidden {
    opacity: 0 !important;
    pointer-events: none;
    animation: none;
}
.discover-page .scroll-cue svg {
    width: 20px;
    height: 12px;
    display: block;
    stroke: var(--d-gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.discover-page .scroll-cue svg:first-child { opacity: 0.3; }
.discover-page .scroll-cue svg:last-child  { opacity: 0.75; }

@keyframes scroll-cue-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}
.discover-page .hero .photo {
    border: 1px solid #2E2A22;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255, 0.06),
        0 16px 40px -18px rgba(0,0,0, 0.6);
}
.discover-page .hero .eyebrow {
    position: relative;
    padding-left: 14px;
}
.discover-page .hero .eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background: #E8B400;
}
.discover-page .hero-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 3.8rem;
    line-height: .9;
    color: var(--d-bone);
    margin-top: 16px;
    transform: scaleY(1.05);
    transform-origin: bottom;
}
.discover-page .hero-intro {
    color: var(--d-dim);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 440px;
}
.discover-page .hero .photo {
    min-height: 400px;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
}

/* ---------- Section divider -------------------------------------------- */
.discover-page .sec-divider {
    border: none;
    border-top: 1px solid var(--d-border-soft);
    margin: 56px 0 0;
}

/* ---------- Section header -------------------------------------------- */
.discover-page .sec-head {
    text-align: center;
    margin: 72px 0 38px;
}
.discover-page .sec-head .eyebrow {
    display: block;
    margin-bottom: 12px;
}
.discover-page .sec-head h2 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 2.7rem;
    text-transform: uppercase;
    color: var(--d-bone);
    transform: scaleY(1.05);
    margin: 0;
    line-height: 1.05;
}
.discover-page .sec-head h2 .g { color: var(--d-gold); }
.discover-page .sec-head p {
    color: var(--d-dim);
    max-width: 560px;
    margin: 14px auto 0;
    line-height: 1.6;
    font-size: .95rem;
}

/* ---------- Featured recipe grid -------------------------------------- */
.discover-page .grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.discover-page .rcard {
    background: transparent;
    border: 1px solid #2E2A22;
    border-radius: 14px;
    overflow: hidden;
    min-height: 380px;
    box-shadow:
        0 2px 6px rgba(0,0,0, 0.35),
        0 14px 30px -16px rgba(0,0,0, 0.5);
    transition: transform .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.discover-page .rcard:hover {
    transform: translateY(-3px);
    border-color: #3a362c;
}
.discover-page .rcard .photo {
    height: 240px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #2E2A22;
}
.discover-page .rcard .body {
    padding: 24px 26px 26px;
    background: transparent;
}
.discover-page .tag {
    display: inline-block;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--d-gold);
    border: 1px solid rgba(232,180,0,.4);
    border-radius: 20px;
    padding: 4px 11px;
}
.discover-page .rcard h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    transform: scaleY(1.05);
    transform-origin: bottom;
    color: var(--d-bone);
    margin: 16px 0 16px;
    line-height: 1.3;
}
.discover-page .rcard .rmeta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    color: var(--d-dim);
}
.discover-page .rcard .rmeta .av {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--d-raised);
    border: 1px solid var(--d-border);
    flex-shrink: 0;
}

/* Author initial avatar — shared between recipe cards and Mindful Meals */
.discover-page .av-initial {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--d-raised);
    border: 1px solid rgba(232,180,0, 0.35);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: .56rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--d-gold);
    letter-spacing: 0;
}

/* ---------- Mindful Meals editorial index ----------------------------- */
.discover-page .idx {
    display: flex;
    flex-direction: column;
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--d-border-soft);
}
.discover-page .idx-row {
    display: grid;
    grid-template-columns: 130px 1fr 28px;
    gap: 26px;
    align-items: center;
    padding: 24px 4px;
    border-bottom: 1px solid var(--d-border-soft);
    cursor: pointer;
    transition: padding-left .2s;
    text-decoration: none;
    color: inherit;
}
.discover-page .idx-row:hover { padding-left: 12px; }
.discover-page .idx .mini-tag {
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--d-gold);
}
.discover-page .idx .date {
    font-size: .72rem;
    color: var(--d-steel);
    margin-top: 7px;
}
.discover-page .idx .ih {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--d-bone);
    line-height: 1.3;
    transition: color .18s;
}
.discover-page .idx .ex {
    font-size: .86rem;
    color: var(--d-dim);
    margin-top: 5px;
    line-height: 1.5;
    max-width: 620px;
}
.discover-page .idx-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: .74rem;
    color: var(--d-dim);
}
.discover-page .idx-row:hover .ih { color: var(--d-gold); }
.discover-page .idx .arr {
    color: var(--d-steel);
    transition: color .18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.discover-page .idx .arr svg {
    width: 20px; height: 20px;
    stroke: currentColor; fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.discover-page .idx-row:hover .arr { color: var(--d-gold); }

.discover-page .center-cta {
    display: flex;
    justify-content: center;
    margin: 44px 0 0;
}

/* Empty / coming-soon states for new installs without content yet. */
.discover-page .empty-block {
    background: transparent;
    border: 1px dashed #2E2A22;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    color: var(--d-dim);
    font-size: .9rem;
    box-shadow:
        0 2px 6px rgba(0,0,0, 0.35),
        0 14px 30px -16px rgba(0,0,0, 0.5);
}
.discover-page .empty-block strong {
    color: var(--d-bone);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    letter-spacing: .04em;
}

/* Stagger-in animation (matches mockup `.anim` exactly). */
@keyframes discover-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.discover-page .anim {
    opacity: 0;
    animation: discover-rise .6s cubic-bezier(.2,.7,.2,1) forwards;
}

/* ---------- HERO — full-bleed scrim variant (TODO: refine when
     hog_discover_page.html mockup is supplied. Until then, the scrim
     path renders the same split layout with a gold-tinted overlay so
     editors who switch hero_style still get a visually distinct frame). */
.discover-page .hero--scrim {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 64px 0 28px;
}
.discover-page .hero--scrim .photo {
    aspect-ratio: 21 / 9;
    min-height: unset;
    border-radius: 18px;
}
.discover-page .hero--scrim .scrim-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14,12,9,0.0) 35%, rgba(14,12,9,0.88) 100%),
        linear-gradient(90deg, rgba(14,12,9,0.6) 0%, rgba(14,12,9,0.0) 55%);
    border-radius: 18px;
    pointer-events: none;
}
.discover-page .hero--scrim .scrim-body {
    position: absolute;
    left: 48px;
    bottom: 48px;
    max-width: 60%;
    z-index: 2;
}
.discover-page .hero--scrim .hero-title { font-size: 4.4rem; }

/* ---------- Responsive (matches mockup @media (max-width: 920px)) ----- */
@media (max-width: 920px) {
    .discover-page { padding: 0 20px; }
    .discover-page .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 0 20px;
    }
    .discover-page .hero .photo { min-height: 300px; order: -1; }
    .discover-page .grid3 { grid-template-columns: 1fr; }
    .discover-page .idx-row { grid-template-columns: 1fr; gap: 8px; }
    .discover-page .idx .arr { display: none; }
    .discover-page .hero-title { font-size: 2.8rem; }
    .discover-page .hero--scrim .photo { aspect-ratio: 4 / 3; }
    .discover-page .hero--scrim .scrim-body { left: 24px; bottom: 24px; max-width: 80%; }
    .discover-page .hero--scrim .hero-title { font-size: 2.6rem; }
    .discover-page .scroll-cue { display: none; }
}
