/* =====================================================================
   helloFriday AI | Studio — design kit v1 (December 2026)
   Matches the Studio illustration on hellofriday.com.au.
   Every class is prefixed .hfs- so it won't clash with existing styles.
   Font: Hanken Grotesk (Google Fonts) — load it in <head>:
   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet">
   ===================================================================== */

:root{
  /* brand */
  --hfs-blue:#2344e6;        /* primary: active nav, buttons, AI block, focus */
  --hfs-blue-d:#1a32b5;      /* primary hover/pressed */
  --hfs-tint:#eef1fe;        /* focus ring, selected rows, quiet blue panels */
  --hfs-tint-2:#dfe5ff;
  /* neutrals */
  --hfs-ink:#0a0a0a;         /* main text */
  --hfs-soft:#55554f;        /* secondary text, labels */
  --hfs-line:#e4e3df;        /* borders, dividers */
  --hfs-stone:#f4f3f0;       /* inputs, chips, quiet fills */
  --hfs-canvas:#fafaf8;      /* main work area background */
  --hfs-card:#ffffff;
  /* sidebar */
  --hfs-side:#0f1430;        /* sidebar background */
  --hfs-side-ink:#c9cdf0;    /* sidebar text */
  --hfs-side-line:rgba(255,255,255,.12);
  /* status */
  --hfs-ok-bg:#e6f8ef;  --hfs-ok:#05301f;  --hfs-ok-dot:#34d399;   /* passed checks */
  --hfs-warn-bg:#fff4dc;--hfs-warn:#5a3b00;--hfs-warn-dot:#f2b230; /* flagged, rewritten */
  --hfs-bad-bg:#fdecec; --hfs-bad:#7a1218; --hfs-bad-dot:#e5484d;  /* blocked, failed */
  /* shape and motion */
  --hfs-r-lg:18px; --hfs-r:12px; --hfs-r-sm:8px; --hfs-pill:999px;
  --hfs-shadow:0 40px 80px -40px rgba(20,30,110,.45),0 0 0 1px rgba(10,10,10,.06);
  --hfs-shadow-sm:0 12px 24px -14px rgba(20,30,110,.35);
  --hfs-ease:cubic-bezier(.2,.7,.2,1);
  --hfs-font:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ---------- base ---------- */
.hfs,.hfs *{box-sizing:border-box;min-width:0}
.hfs{font:400 14px/1.5 var(--hfs-font);color:var(--hfs-ink);-webkit-font-smoothing:antialiased}
.hfs :focus-visible{outline:2px solid var(--hfs-blue);outline-offset:2px;border-radius:6px}
.hfs h1,.hfs h2,.hfs h3,.hfs p{margin:0}
.hfs h1,.hfs h2,.hfs h3{letter-spacing:-0.02em}
.hfs-h1{font-size:26px;font-weight:300;letter-spacing:-0.03em}
.hfs-h2{font-size:18px;font-weight:600}
.hfs-label{display:block;font-size:12px;color:var(--hfs-soft);margin-bottom:4px}

/* ---------- app shell: sidebar + main ---------- */
.hfs-app{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;background:var(--hfs-canvas)}
.hfs-side{background:var(--hfs-side);color:var(--hfs-side-ink);display:flex;flex-direction:column;gap:4px;padding:18px 14px;position:sticky;top:0;height:100vh}
.hfs-main{padding:24px clamp(16px,3vw,40px);display:flex;flex-direction:column;gap:20px}
.hfs-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* logo lockup: helloFriday [AI] | Studio */
.hfs-logo{display:flex;align-items:center;white-space:nowrap;font-weight:600;font-size:16px;letter-spacing:-0.045em;color:#fff;text-decoration:none;padding:4px 6px 14px}
.hfs-logo b{font-size:.62em;font-weight:700;letter-spacing:0;background:var(--hfs-blue);color:#fff;border-radius:.26em;padding:.2em .34em;margin-left:.3em;line-height:1}
.hfs-logo i{display:inline-block;width:1px;height:.95em;background:rgba(255,255,255,.4);margin:0 .5em}
.hfs-logo span{font-weight:400;letter-spacing:-0.02em}
.hfs-logo.on-light{color:var(--hfs-ink)}
.hfs-logo.on-light i{background:var(--hfs-ink);opacity:.3}

/* sidebar nav */
.hfs-nav{display:flex;flex-direction:column;gap:2px}
.hfs-nav a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-radius:var(--hfs-r-sm);color:var(--hfs-side-ink);text-decoration:none;font-size:14px;transition:background .2s,color .2s}
.hfs-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.hfs-nav a[aria-current="page"],.hfs-nav a.is-active{background:var(--hfs-blue);color:#fff;font-weight:600}
.hfs-nav svg{width:18px;height:18px;flex:none}

/* client switcher at bottom of sidebar */
.hfs-client{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-top:1px solid var(--hfs-side-line);font-size:13px;color:#fff}
.hfs-client-badge{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:14px;flex:none}
/* set the badge colours per client, e.g. Skinscription: */
.hfs-client-badge.skinscription{background:#f6f1e7;color:#7a6040;font-family:"Cormorant Garamond",serif;font-style:italic}

/* ---------- cards ---------- */
.hfs-card{background:var(--hfs-card);border-radius:var(--hfs-r);box-shadow:0 0 0 1px var(--hfs-line);padding:16px}
.hfs-card.raised{box-shadow:var(--hfs-shadow-sm),0 0 0 1px var(--hfs-line)}

/* ---------- the request box (main "What would you like to post?") ---------- */
.hfs-prompt{background:#fff;border:1.5px solid var(--hfs-blue);border-radius:var(--hfs-r);padding:14px 16px;box-shadow:0 0 0 4px var(--hfs-tint);transition:box-shadow .2s}
.hfs-prompt textarea,.hfs-prompt input{width:100%;border:0;outline:0;resize:vertical;font:500 16px/1.45 var(--hfs-font);color:var(--hfs-ink);background:transparent;padding:0;min-height:48px}
.hfs-prompt textarea::placeholder{color:#6b6b64;font-weight:400}
.hfs-prompt-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}

/* uploads */
.hfs-uploads{display:flex;gap:8px;flex-wrap:wrap}
.hfs-thumb{width:52px;height:52px;border-radius:var(--hfs-r-sm);object-fit:cover;background:var(--hfs-stone);position:relative;overflow:hidden}
.hfs-thumb.add{border:1.5px dashed #c9c8c3;background:#fff;display:grid;place-items:center;color:var(--hfs-soft);font-size:20px;cursor:pointer}
.hfs-thumb.add:hover{border-color:var(--hfs-blue);color:var(--hfs-blue)}
.hfs-thumb .hfs-badge-video{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;border-radius:4px;padding:1px 4px}

/* format chips (Reel 9:16 / Tile 4:5 / Story / Caption only) */
.hfs-chips{display:flex;gap:6px;flex-wrap:wrap}
.hfs-chip{border:1px solid var(--hfs-line);background:#fff;border-radius:var(--hfs-pill);padding:6px 12px;font:500 13px var(--hfs-font);color:var(--hfs-ink);cursor:pointer}
.hfs-chip[aria-pressed="true"],.hfs-chip.is-on{background:var(--hfs-blue);border-color:var(--hfs-blue);color:#fff}

/* ---------- output: preview + caption side by side ---------- */
.hfs-output{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}
.hfs-preview{display:flex;flex-direction:column;align-items:center;gap:6px}
.hfs-preview-frame{border-radius:14px;overflow:hidden;background:var(--hfs-stone);box-shadow:var(--hfs-shadow-sm)}
.hfs-preview-frame.reel{width:200px;aspect-ratio:9/16}
.hfs-preview-frame.tile{width:240px;aspect-ratio:4/5}
.hfs-preview-frame.square{width:240px;aspect-ratio:1/1}
.hfs-preview-frame video,.hfs-preview-frame img{width:100%;height:100%;object-fit:cover;display:block}
.hfs-preview small{font-size:11.5px;color:var(--hfs-soft)}

.hfs-caption{display:flex;flex-direction:column;gap:10px}
.hfs-caption-text{font-size:14px;line-height:1.5;white-space:pre-line}
.hfs-hashtags{color:var(--hfs-blue);font-size:13px}

/* compliance and brand checks */
.hfs-checks{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.hfs-check{border-radius:var(--hfs-pill);padding:4px 10px 4px 24px;font-size:12px;font-weight:600;position:relative;background:var(--hfs-ok-bg);color:var(--hfs-ok)}
.hfs-check::before{content:"";position:absolute;left:10px;top:8px;width:7px;height:3.5px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(-45deg)}
.hfs-check.warn{background:var(--hfs-warn-bg);color:var(--hfs-warn)}
.hfs-check.warn::before,.hfs-check.bad::before{border:0;transform:none;width:6px;height:6px;border-radius:50%;top:9px;left:11px;background:currentColor}
.hfs-check.bad{background:var(--hfs-bad-bg);color:var(--hfs-bad)}
/* note under a flagged check, e.g. "Removed a brand name and rewrote the sentence" */
.hfs-note{font-size:12.5px;color:var(--hfs-warn);background:var(--hfs-warn-bg);border-radius:var(--hfs-r-sm);padding:8px 10px}

/* schedule row */
.hfs-schedule{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--hfs-line);padding-top:12px}
.hfs-when{font-size:13px;color:var(--hfs-soft);display:flex;align-items:center;gap:6px}

/* ---------- buttons ---------- */
.hfs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border-radius:var(--hfs-pill);border:1.5px solid var(--hfs-ink);background:#fff;color:var(--hfs-ink);font:600 14px var(--hfs-font);cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s,transform .2s var(--hfs-ease)}
.hfs-btn:hover{transform:translateY(-1px)}
.hfs-btn.primary{background:var(--hfs-blue);border-color:var(--hfs-blue);color:#fff}
.hfs-btn.primary:hover{background:var(--hfs-blue-d);border-color:var(--hfs-blue-d)}
.hfs-btn.ghost{border-color:var(--hfs-line)}
.hfs-btn.ghost:hover{border-color:var(--hfs-ink)}
.hfs-btn.sm{min-height:32px;padding:0 12px;font-size:12.5px}
.hfs-btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

/* ---------- form fields (settings, brand kit) ---------- */
.hfs-field{display:flex;flex-direction:column;gap:6px}
.hfs-input,.hfs-select,.hfs-textarea{font:16px var(--hfs-font);color:var(--hfs-ink);background:var(--hfs-stone);border:1.5px solid transparent;border-radius:var(--hfs-r);padding:10px 12px;min-height:44px;width:100%}
.hfs-input:focus,.hfs-select:focus,.hfs-textarea:focus{outline:none;background:#fff;border-color:var(--hfs-blue);box-shadow:0 0 0 4px var(--hfs-tint)}

/* ---------- library grid + status pills ---------- */
.hfs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.hfs-item{background:#fff;border-radius:var(--hfs-r);overflow:hidden;box-shadow:0 0 0 1px var(--hfs-line);transition:box-shadow .2s,transform .2s var(--hfs-ease)}
.hfs-item:hover{transform:translateY(-2px);box-shadow:var(--hfs-shadow-sm),0 0 0 1px var(--hfs-line)}
.hfs-item-media{aspect-ratio:4/5;background:var(--hfs-stone)}
.hfs-item-body{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.hfs-status{border-radius:var(--hfs-pill);padding:3px 9px;font-size:11.5px;font-weight:600;white-space:nowrap}
.hfs-status.draft{background:var(--hfs-stone);color:var(--hfs-soft)}
.hfs-status.review{background:var(--hfs-warn-bg);color:var(--hfs-warn)}
.hfs-status.scheduled{background:var(--hfs-tint);color:var(--hfs-blue)}
.hfs-status.posted{background:var(--hfs-ok-bg);color:var(--hfs-ok)}
.hfs-status.failed{background:var(--hfs-bad-bg);color:var(--hfs-bad)}

/* ---------- working / loading ---------- */
.hfs-working{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--hfs-soft)}
.hfs-spinner{width:16px;height:16px;border-radius:50%;border:2px solid var(--hfs-tint-2);border-top-color:var(--hfs-blue);animation:hfs-spin .8s linear infinite}
@keyframes hfs-spin{to{transform:rotate(360deg)}}
.hfs-skeleton{background:linear-gradient(90deg,var(--hfs-stone),#fbfbfa,var(--hfs-stone));background-size:200% 100%;animation:hfs-shimmer 1.4s ease-in-out infinite;border-radius:var(--hfs-r-sm)}
@keyframes hfs-shimmer{to{background-position:-200% 0}}

/* ---------- toast ---------- */
.hfs-toast{position:fixed;right:20px;bottom:20px;background:var(--hfs-ink);color:#fff;border-radius:var(--hfs-r);padding:12px 16px;font-size:14px;box-shadow:var(--hfs-shadow);display:flex;align-items:center;gap:10px}
.hfs-toast::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hfs-ok-dot)}

/* ---------- empty state ---------- */
.hfs-empty{text-align:center;padding:48px 20px;color:var(--hfs-soft);background:#fff;border:1.5px dashed var(--hfs-line);border-radius:var(--hfs-r-lg)}
.hfs-empty strong{display:block;color:var(--hfs-ink);font-size:16px;margin-bottom:4px}

/* ---------- responsive: sidebar becomes a top bar on phones ---------- */
@media (max-width:760px){
  .hfs-app{grid-template-columns:1fr}
  .hfs-side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:12px}
  .hfs-logo{width:100%;padding-bottom:6px}
  .hfs-nav{flex-direction:row;flex-wrap:wrap}
  .hfs-client{display:none}
  .hfs-output{grid-template-columns:1fr;justify-items:center}
  .hfs-caption{width:100%}
}
@media (prefers-reduced-motion:reduce){.hfs *{transition:none !important;animation:none !important}}
