/* public/assets/shortking/css/home.css
   ShortKing home page (design: "Originele designs" home + Stories videos).
   Everything is scoped under body.sk-home so it cannot leak into other pages. */

.sk-home {
    --bg: #f5f6f5; --ink: #18201e; --muted: #68716e; --mint: #c9f6df; --line: #e5e9e6;
    margin: 0; background: var(--bg); color: var(--ink);
    font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sk-home *, .sk-home *::before, .sk-home *::after { box-sizing: border-box; }
.sk-home a { color: inherit; text-decoration: none; }
.sk-home button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; }

/* ---- layout ---- */
.sk-home main { max-width: 1160px; margin: 0 auto; padding: 38px 22px 80px; }
.sk-home .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #278b62; font-weight: 800; }
.sk-home .hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.sk-home .card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 8px 35px #14201907; }
.sk-home .hero .card { padding: 48px; }
.sk-home h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -2.7px; line-height: 1.09; margin: 15px 0 20px; }
.sk-home .hero p { font-size: 18px; color: #59635e; max-width: 680px; }
.sk-home h2 { font-size: 29px; letter-spacing: -1px; line-height: 1.2; margin: 0 0 12px; }
.sk-home h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.5px; }
.sk-home p { margin: 9px 0 18px; }
.sk-home .muted { color: var(--muted); }
.sk-home .fine { font-size: 13px; margin-top: 25px; }
.sk-home .fine.small { font-size: 12px; margin-top: 18px; }

.sk-home .btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; background: #1c2622; color: #fff; border: 0; border-radius: 13px; padding: 13px 19px; font-weight: 750; min-height: 47px; }
.sk-home .btn:hover { background: #36473e; }
.sk-home .btn.secondary { background: #e6f8ee; color: #183a29; }
.sk-home .btn.secondary:hover { background: #d4f1e1; }
.sk-home .btn.ghost { background: #f1f3f2; color: #26322b; }
.sk-home .btn.small { padding: 9px 13px; min-height: 38px; font-size: 13px; }
.sk-home .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.sk-home .mint { background: linear-gradient(140deg, #e8fff1, #c7f3dc); border-color: #b9ebd0; }
.sk-home .quiz-title { font-size: 38px; margin-top: 18px; }
.sk-home .quiz-heart { font-size: 88px; text-align: center; margin: 20px 0; }

.sk-home .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sk-home .section { margin-top: 36px; }
.sk-home .section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }

/* ---- featured profiles ---- */
.sk-home .portrait { height: 220px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(140deg, #e2ede8, #cde4d7); margin-bottom: 20px; overflow: hidden; }
.sk-home .portrait.b { background: linear-gradient(140deg, #e7e8e9, #d9e9e3); }
.sk-home .portrait.c { background: linear-gradient(140deg, #eee5da, #e0e8d8); }
.sk-home .portrait img { width: 100%; height: 100%; object-fit: cover; }
.sk-home .tag { display: inline-block; background: #eef7f1; border-radius: 50px; padding: 5px 10px; font-size: 12px; font-weight: 700; color: #347452; margin: 4px 5px 4px 0; }

/* ================= ShortKing Stories (vertical videos) ================= */
.sk-stories { margin-top: 36px; }
.sk-stories-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 20px; }
.sk-stories-head h2 { margin-top: 5px; }
.sk-stories-head p { margin: 0; max-width: 590px; color: var(--muted); }
.sk-stories-controls { display: flex; gap: 8px; flex-shrink: 0; }
.sk-story-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 21px; }
.sk-story-arrow:disabled { opacity: .35; cursor: default; }
.sk-story-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 0 12px; }
.sk-story-card { min-width: 0; scroll-snap-align: start; }
.sk-story-media { position: relative; aspect-ratio: 9/16; border-radius: 22px; overflow: hidden; background: #c9f6df; border: 1px solid #dce5de; }
.sk-story-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-story-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sk-story-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk-story-play { position: absolute; inset: 0 0 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.sk-story-media[data-kind="youtube"] .sk-story-play, .sk-story-media[data-kind="vimeo"] .sk-story-play { inset: 0; } /* no native control bar */
.sk-story-play span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #ffffffeb; color: #18201e; box-shadow: 0 6px 30px #18201e25; font-size: 21px; padding-left: 3px; }
.sk-story-play[hidden] { display: none; }
.sk-story-card h3 { font-size: 16px; letter-spacing: -.3px; margin: 12px 0 3px; }
.sk-story-caption { font-size: 12px; color: var(--muted); margin: 0; }
.sk-story-top { position: absolute; top: 14px; right: 14px; pointer-events: none; background: #ffffffd9; color: #18201e; border-radius: 30px; padding: 4px 9px; font-size: 10px; font-weight: 800; }
.sk-story-arrow:focus-visible, .sk-story-play:focus-visible { outline: 3px solid #278b62; outline-offset: -4px; }
.sk-story-error { position: absolute; bottom: 48px; left: 14px; right: 14px; padding: 10px; border-radius: 9px; background: white; color: #18201e; font-size: 12px; }
.sk-story-error[hidden] { display: none; }

/* ---- responsive ---- */
@media (max-width: 850px) {
    .sk-home .hero, .sk-home .grid { grid-template-columns: 1fr; }
    .sk-home .hero .card { padding: 29px; }
    .sk-home .card { padding: 23px; }
    .sk-home .section { margin-top: 24px; }
    .sk-story-track { grid-auto-columns: calc((100% - 18px) / 2); }
    .sk-stories { margin-top: 24px; }
    .sk-stories-head { align-items: center; }
}
@media (max-width: 520px) {
    .sk-story-track { grid-auto-columns: 78%; gap: 14px; }
    .sk-stories-head { align-items: flex-start; gap: 12px; }
    .sk-stories-head h2 { font-size: 26px; }
    .sk-stories-head p { font-size: 14px; }
    .sk-story-arrow { width: 34px; height: 34px; }
    .sk-story-media { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .sk-story-track { scroll-behavior: auto; }
    html { scroll-behavior: auto; }
}
