/* hangout by RIVAK, preview layout. mobile-first, white base, depth/3D styling. */

/* fonts: Baloo 2 (display, echoes the chunky rounded logo) + Archivo (UI/body). OFL. */
@font-face {
    font-family: 'Baloo 2';
    src: url('assets/fonts/Baloo2.ttf') format('truetype');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'Dancing Script';
    src: url('assets/fonts/DancingScript.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: 'Kaushan Script';
    src: url('assets/fonts/KaushanScript.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Archivo';
    src: url('assets/fonts/Archivo.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #111111;
    --muted: rgba(17, 17, 17, 0.55);
    --hairline: #E7E3DA;
    --paper: #FFFFFF;
    --soft: #F4F2ED;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Archivo', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--paper); color: var(--ink);
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

/* ---------------- top bar ---------------- */
.hg-top {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.hg-brand img { height: 26px; width: auto; }
.hg-welcome {
    font-family: 'Baloo 2', 'Archivo', sans-serif;
    font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--muted); font-weight: 700;
    position: absolute; left: 50%; transform: translateX(-50%);
    pointer-events: none;
}
.hg-top-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.hg-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
}
.hg-iconbtn:active { background: var(--soft); }

.hg-scrim[hidden], .hg-drawer[hidden] { display: none; }
.hg-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(17, 17, 17, 0.42); }
.hg-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: min(85vw, 340px);
    display: flex; flex-direction: column;
    background: var(--paper);
    border-right: 1px solid var(--hairline);
    box-shadow: 30px 0 60px -30px rgba(17, 17, 17, 0.5);
}
.hg-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 12px 18px;
    background: var(--hangout-yellow);
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}
.hg-drawer-head img { height: 26px; width: auto; }
.hg-drawer-list { overflow-y: auto; padding: 6px 0 24px; }
.hg-drawer-list > a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 20px;
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 600; font-size: 16px;
    border-bottom: 1px solid var(--hairline);
}
.hg-drawer-list > a.is-active { background: rgba(255, 216, 77, 0.5); }
.hg-drawer-group { border-bottom: 1px solid var(--hairline); padding: 12px 20px 14px; }
.hg-drawer-group > p {
    font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; padding-bottom: 8px;
}
.hg-drawer-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hg-drawer-sub a {
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 600; font-size: 13.5px;
    text-align: center; padding: 9px 10px;
    background: var(--soft); border: 1px solid var(--hairline); border-radius: 12px;
}
.hg-chip {
    font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
    background: var(--hangout-yellow); border: 1px solid rgba(17, 17, 17, 0.22);
    padding: 3px 8px; border-radius: 999px;
}
.hg-drawer-ig { justify-content: flex-start; gap: 12px; }

/* ---------------- sign in / sign up popup (demo UI) ---------------- */
.hg-auth[hidden] { display: none; }
.hg-auth {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.45);
}
.hg-auth-card {
    position: relative;
    width: min(100%, 360px);
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 24px 20px 18px;
    box-shadow: 0 44px 80px -30px rgba(17, 17, 17, 0.55);
}
.hg-auth-card > img { display: block; height: 30px; width: auto; margin: 0 auto 14px; }
.hg-auth-close { position: absolute; top: 8px; right: 8px; }
.hg-auth-tabs {
    display: flex; gap: 4px;
    background: var(--soft); border-radius: 999px; padding: 4px;
    margin-bottom: 16px;
}
.hg-auth-tabs button {
    flex: 1; padding: 9px 0; border-radius: 999px;
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px;
    color: var(--muted);
}
.hg-auth-tabs button.is-on { background: var(--ink); color: #FFFFFF; }
.hg-auth-field { margin-bottom: 10px; text-align: left; }
.hg-auth-field label {
    display: block; padding: 0 2px 6px;
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); font-weight: 700;
}
.hg-auth-field input {
    width: 100%; padding: 12px 14px;
    font: inherit; font-size: 14px;
    background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 14px;
}
.hg-auth-field input:focus { outline: 2px solid var(--hangout-yellow); outline-offset: 1px; }
.hg-auth-go {
    width: 100%; margin-top: 4px; padding: 13px 0;
    background: var(--hangout-yellow);
    border: 1px solid rgba(17, 17, 17, 0.25); border-radius: 14px;
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 800; font-size: 15.5px;
    box-shadow: 0 14px 24px -14px rgba(17, 17, 17, 0.45);
}
.hg-auth-note { margin-top: 12px; font-size: 10.5px; line-height: 1.55; color: var(--muted); text-align: center; }

/* ---------------- placeholder blocks ---------------- */
.hg-ph {
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.035) 0 10px, transparent 10px 20px),
        var(--soft);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--muted);
}
.hg-ph span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.hg-ph em { font-style: normal; font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }

/* ---------------- hero: vertical full-width poster slider ---------------- */
.hg-hero {
    position: relative;
    isolation: isolate;
    height: min(128vw, 540px);
    overflow: hidden;
    touch-action: pan-x;
}
.hg-coverflow { position: absolute; inset: 0; }
.hg-poster {
    position: absolute; inset: 0;
    transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.6s ease;
    will-change: transform;
}
.hg-poster .hg-ph { border-radius: 0; border-left: 0; border-right: 0; }
.hg-dots {
    position: absolute; left: 0; right: 0; bottom: 12px;
    display: flex; justify-content: center; gap: 8px;
}
.hg-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(17, 17, 17, 0.22); transition: background 0.25s ease, transform 0.25s ease;
}
.hg-dots i.on { background: var(--ink); transform: scale(1.25); }


/* ---------------- warm yellow feature bands (user pick) ---------------- */
:root { --hangout-yellow: #FFD84D; }
#categories, #collections, #new-arrivals, #reels {
    background: var(--hangout-yellow);
}
#categories { padding-top: 26px; }
#reels { padding-bottom: 30px; }
#categories .hg-sec-head, #collections .hg-sec-head,
#new-arrivals .hg-sec-head, #reels .hg-sec-head { justify-content: center; }
#categories .hg-ph, #collections .hg-ph, #new-arrivals .hg-ph, #reels .hg-ph {
    background:
        repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.05) 0 10px, transparent 10px 20px),
        rgba(255, 255, 255, 0.55);
    border-color: rgba(17, 17, 17, 0.22);
}

/* ---------------- cashback strip ---------------- */
.hg-cash { padding: 14px 16px; }
.hg-cash-bar {
    display: flex; align-items: center; gap: 14px;
    background: var(--ink); color: #FFFFFF;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 22px 38px -20px rgba(17, 17, 17, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hg-cash-coin {
    flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.65);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 800; font-size: 14px;
}
.hg-cash-bar p { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.45; }

/* ---------------- sections ---------------- */
.hg-sec { padding: 22px 0 6px; }
.hg-sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 14px; }
.hg-sec-head h2 { font-family: 'Dancing Script', 'Kaushan Script', cursive; font-weight: 700; font-size: 29px; letter-spacing: 0; line-height: 1.2; }

/* categories */
.hg-cat-row {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 2px 12px 6px;
}
.hg-cat { display: block; }
.hg-cat .hg-ph-sq { aspect-ratio: 1 / 1.15; height: auto; border-radius: 16px; }
.hg-cat .hg-ph span { font-size: 9.5px; letter-spacing: 0.12em; text-align: center; padding: 0 4px; }
.hg-cat p { padding-top: 8px; font-family: 'Baloo 2', 'Archivo', sans-serif; font-size: 14.5px; font-weight: 700; text-align: center; }

/* collections slider */
.hg-col-slider {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; padding: 6px 12px 4px;
}
.hg-col { display: block; width: 100%; }
.hg-col .hg-ph-col { aspect-ratio: 4 / 4.6; height: auto; border-radius: 20px; box-shadow: 0 26px 44px -24px rgba(17, 17, 17, 0.4); }

/* new arrivals */
.hg-new-slider {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 2px 16px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hg-new-slider::-webkit-scrollbar { display: none; }
.hg-new { flex: 0 0 44%; min-width: 0; scroll-snap-align: start; display: block; }
.hg-new .hg-ph-new { aspect-ratio: 3 / 3.8; height: auto; border-radius: 16px; }
.hg-new-tag { padding-top: 8px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hg-new-name { font-family: 'Baloo 2', 'Archivo', sans-serif; font-size: 14px; font-weight: 600; padding-top: 1px; }

/* reels */
.hg-reel-player { overflow: hidden; padding: 2px 0 8px; }
.hg-reel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
    will-change: transform;
}
.hg-reel { flex: 0 0 100%; min-width: 0; display: flex; justify-content: center; }
.hg-reel .hg-ph-reel {
    width: min(calc(100% - 48px), 300px);
    aspect-ratio: 9 / 14; height: auto; border-radius: 18px;
    box-shadow: 0 26px 44px -24px rgba(17, 17, 17, 0.4);
}
.hg-rdots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 4px; }
.hg-rdots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--hairline); transition: background 0.25s ease, transform 0.25s ease;
}
.hg-rdots i.on { background: var(--ink); transform: scale(1.25); }
.hg-reel-play {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--muted); padding-left: 3px;
}


/* ---------------- auth legal link ---------------- */
.hg-auth-legal { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }
.hg-auth-legal a { text-decoration: underline; font-weight: 600; }

/* ---------------- footer links ---------------- */
.hg-foot-links {
    margin-top: 14px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
}
.hg-foot-links a {
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 600; font-size: 13px;
    color: rgba(17, 17, 17, 0.75);
}
.hg-foot-links a:hover { text-decoration: underline; }

/* ---------------- cookies banner (demo UI) ---------------- */
.hg-cookies[hidden] { display: none; }
.hg-cookies {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 65;
    display: flex; align-items: center; gap: 14px;
    background: var(--ink); color: #FFFFFF;
    border-radius: 16px; padding: 14px 16px;
    box-shadow: 0 22px 40px -18px rgba(17, 17, 17, 0.6);
}
.hg-cookies p { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.hg-cookies button {
    flex: 0 0 auto;
    background: var(--hangout-yellow); color: var(--ink);
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 800; font-size: 13px;
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------------- inner pages ---------------- */
.hg-back {
    display: inline-block; margin: 16px 20px 0;
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 700; font-size: 14px;
}
.hg-back:hover { text-decoration: underline; }
.hg-page-hero { background: var(--hangout-yellow); padding: 34px 20px 32px; text-align: center; border-bottom: 1px solid rgba(17, 17, 17, 0.15); }
.hg-page-hero h1 { font-family: 'Dancing Script', 'Kaushan Script', cursive; font-weight: 700; font-size: 38px; line-height: 1.2; }
.hg-tag {
    display: inline-block; margin-top: 12px;
    font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
    background: var(--ink); color: #FFFFFF; padding: 4px 12px; border-radius: 999px;
}
.hg-page-body { max-width: 680px; margin: 0 auto; padding: 26px 20px 44px; }
.hg-page-body h2 {
    font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 700; font-size: 17px;
    padding: 18px 0 6px;
}
.hg-page-body p { font-size: 14px; line-height: 1.7; color: rgba(17, 17, 17, 0.8); padding-bottom: 10px; }
.hg-page-body .hg-ph-note {
    background: var(--soft); border: 1px dashed rgba(17, 17, 17, 0.3); border-radius: 14px;
    padding: 14px 16px; font-size: 12.5px; color: var(--muted);
}

/* ---------------- 3D tilt ---------------- */
.hg-tilt { transform-style: preserve-3d; transition: transform 0.35s ease; will-change: transform; }
.hg-tilt .hg-ph { transition: box-shadow 0.35s ease; }
.hg-tilt:hover .hg-ph { box-shadow: 0 28px 46px -20px rgba(17, 17, 17, 0.4); }
.hg-tilt-static { transform: translateZ(0); }

/* ---------------- footer ---------------- */
.hg-foot {
    margin-top: 0;
    border-top: 1px solid var(--hairline);
    padding: 30px 16px 26px;
    text-align: center;
}
.hg-foot-logo { height: 24px; width: auto; margin: 0 auto 10px; }
.hg-foot-note { font-family: 'Baloo 2', 'Archivo', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.hg-foot-demo { margin-top: 14px; font-size: 11px; color: var(--muted); }

/* ---------------- bottom tabs ---------------- */
.hg-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--hairline);
    padding-bottom: env(safe-area-inset-bottom);
}
.hg-tabs a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 8px;
    font-family: 'Baloo 2', 'Archivo', sans-serif;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
    color: var(--muted);
}
.hg-tabs a.is-active { color: var(--ink); font-weight: 700; }

/* ---------------- desktop ---------------- */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .hg-tabs { display: none; }
    .hg-top { padding: 14px 40px; }
    .hg-brand img { height: 30px; }
    .hg-hero { height: 560px; }
    .hg-cash { padding: 22px 40px; }
    .hg-cash-bar { max-width: 720px; margin: 0 auto; padding: 20px 26px; }
    .hg-sec { padding: 34px 40px 10px; }
    .hg-sec-head { padding: 0 0 18px; }
    .hg-sec-head h2 { font-size: 34px; }
    .hg-cat-row { padding: 0; gap: 18px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
    .hg-cat { flex: none; }
    .hg-cat .hg-ph-sq { aspect-ratio: 1 / 1.2; }
    .hg-cat p { font-size: 13px; }
    .hg-col-slider { padding: 6px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; overflow: visible; }
    .hg-col { flex: none; }
    .hg-new-slider { padding: 2px 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; overflow: visible; }
    .hg-new { flex: none; }
    .hg-reel-player { padding: 2px 0 10px; }
    .hg-reel .hg-ph-reel { width: 340px; }
    .hg-foot { margin-top: 0; }
    .hg-cookies { left: auto; right: 24px; bottom: 24px; width: 430px; }
}

