/* ==========================================================================
   Tema "Golden Hour" — hub igre (npr. junction.kobasic.dev), koncept C.
   Dolazi uz site.css (tokeni, gumbi, oznake milja, obrazac, podnožje) i dodaje
   ono što ima samo hub: karta s mjestima, bilješke uz kartu, put od deset levela,
   pismo, sumrak s natpisom VACANCY, pitanja i stranica bilješke.
   Papirnate kartice i narančaste točke su iz sučelja same igre.
   ========================================================================== */

/* ── Dijelovi iz sučelja igre ── */
.paper { position: relative; background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: inset 0 0 0 1.5px #ead9bb, 0 14px 30px -18px rgb(91 52 25 / .45), 0 1px 0 rgb(255 255 255 / .6) inset; }
.badge { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--sun); color: #fff6e6; box-shadow: 0 4px 8px -2px rgb(61 33 15 / .3); }
.badge svg { width: 24px; height: 24px; }
.segments { display: flex; gap: 6px; margin-top: 10px; }
.segments i { width: 30px; height: 5px; border-radius: 3px; background: #dcc7a2; }
.segments i.on { background: var(--sun); }
.empty-note { margin: clamp(30px, 4vw, 48px) 0 0 70px; padding: 22px 24px; color: var(--ink-2); }

/* ── Zaglavlje i podnožje: ime igre kao natpis ── */
.hub-brand { display: grid; line-height: 1; }
.hub-brand b { font: 500 24px/1 var(--serif); letter-spacing: -.01em; }
.hub-brand small { margin-top: 5px; color: var(--teal-deep); font: 700 10.5px/1 var(--signage); letter-spacing: .28em; text-transform: uppercase; }
.footer .hub-brand b { color: #fff4e2; }
.footer .hub-brand small { color: var(--mustard); }

/* ── Uvod: naslov, karta raskrižja, cilj ── */
.hub-hero { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 72px) 0 clamp(80px, 8vw, 112px); background: radial-gradient(60% 60% at 90% 15%, rgb(250 214 160 / .55), transparent 70%), linear-gradient(180deg, #f9e6c9 0%, var(--paper) 70%); }
.hub-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 80px); }
.hub-hero .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hub-hero .hero-more { grid-column: 1; grid-row: 2; align-self: start; }
.hero-map { position: relative; isolation: isolate; grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; width: min(470px, 100%); }
.hero-map .sun { z-index: -1; }
.hub-hero .title { margin-top: 0; }
.by { display: block; margin-top: 14px; color: var(--muted); font: 500 16px/1.2 var(--serif); }
.goal { display: flex; align-items: center; gap: 16px; max-width: 480px; margin-top: 26px; padding: 16px 20px; }
.goal h3 { font-size: 21px; line-height: 1.2; }
.goal p { color: var(--muted); font-size: 15.5px; line-height: 1.4; }

/* Karta: snimka iz igre s oznakama mjesta kao u igri */
.map { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4 / 5); border-radius: 26px; background: var(--sand); box-shadow: 0 0 0 8px var(--card), 0 0 0 9.5px #e3cfac, 0 40px 80px -40px rgb(91 52 25 / .6); }
.map > img { width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: grid; justify-items: center; translate: -50% -100%; text-decoration: none; }
.pin::after { content: ""; width: 2px; height: 14px; background: rgb(43 34 28 / .5); }
.pin.below { translate: -50% 0; }
.pin.below::after { order: -1; }
.pin .tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 4px 10px; border-radius: 999px; background: var(--card); color: var(--ink); font: 500 15px/1.2 var(--serif); white-space: nowrap; box-shadow: inset 0 0 0 1.5px #e3cfac, 0 5px 12px -5px rgb(61 33 15 / .45); transition: background .3s, color .3s; }
.pin .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 8px 2px rgb(236 138 60 / .6); }
.pin.later .tag { color: var(--muted); }
.pin.later .tag::before { background: #d8c29b; box-shadow: none; }
.pin.active .tag, a.pin:hover .tag { background: var(--sun); color: #fff6e6; box-shadow: 0 6px 14px -6px rgb(185 90 25 / .8); }
.pin.active .tag::before, a.pin:hover .tag::before { background: #fff6e6; box-shadow: 0 0 8px #fff6e6; }
.map .wip { position: absolute; z-index: 3; left: 14px; top: 16px; }
.map-label { position: absolute; z-index: 3; right: 14px; top: 14px; padding: 6px 12px 4px; border-radius: 8px; background: var(--sign); color: #fff; font: 700 10.5px/1.2 var(--signage); letter-spacing: .18em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 3.2px var(--sign-ink); }
.stop-card { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.stop-card h3 { font-size: 19px; line-height: 1.15; }
.stop-card p { color: var(--muted); font-size: 14px; line-height: 1.3; }
.stop-card .btn { margin-left: auto; }

/* ── Bilješke uz kartu (karta prati čitanje) ── */
.notes-story { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 4vw, 52px); }
.map-side { position: sticky; top: 96px; }
.map-side .pin .tag { padding: 4px 11px 3px 9px; font-size: 13.5px; }
.note-rows { display: grid; gap: 16px; }
.note-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.note-row:hover { transform: translateY(-3px); }
.note-row.active { box-shadow: inset 0 0 0 2px var(--sun), 0 18px 34px -16px rgb(185 90 25 / .55); }
.note-row .thumb { position: relative; min-height: 168px; background: var(--sand); }
.note-row .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-row .body { padding: 18px 22px 20px; }
.note-row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 14px; }
.note-row .meta .chip { padding: 4px 11px; font-size: 12.5px; }
.note-row h3 { margin-top: 10px; font-size: 24px; line-height: 1.18; }
.note-row p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.note-rows .sec-foot { margin-top: 6px; }

/* ── Put: deset levela uz Old 77 ── */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.level { display: grid; align-content: start; gap: 6px; min-height: 196px; padding: 16px 16px 18px; }
.lvl { display: grid; justify-items: center; align-content: center; width: 40px; height: 56px; margin-bottom: 8px; border-radius: 7px; background: var(--sign); color: #fff; font: 800 20px/1 var(--signage); box-shadow: inset 0 0 0 2.2px var(--sign), inset 0 0 0 3.6px var(--sign-ink); }
.lvl small { margin-bottom: 3px; font-size: 7.5px; letter-spacing: .2em; }
.level h3 { font-size: 21px; line-height: 1.15; }
.level p { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.level .chip { justify-self: start; margin-top: 8px; padding: 4px 11px; font-size: 12.5px; }
.level.later { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.level.later .lvl { background: #b9ab98; box-shadow: inset 0 0 0 2.2px #b9ab98, inset 0 0 0 3.6px #f7efe2; }
.level.later h3 { color: var(--ink-2); }
.level.later p { color: var(--muted); }

/* ── Pismo ── */
.mae { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.mae .phone { position: relative; width: 100%; }
.mae .phone .wip { position: absolute; left: 20px; bottom: 20px; }
.letter { margin: 0; padding: clamp(26px, 3vw, 40px); background: #fffcf4; }
.letter::before { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1.5px dashed #e3cfac; pointer-events: none; }
.letter .from { color: var(--teal-deep); font: 700 12px/1.2 var(--signage); letter-spacing: .22em; text-transform: uppercase; }
.letter h3 { margin-top: 10px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.letter blockquote { margin: 16px 0 0; }
.letter blockquote p { color: var(--ink-2); font: italic 400 clamp(19px, 1.8vw, 23px)/1.5 var(--serif); }
.letter .sig { margin-top: 14px; text-align: right; color: var(--rust); font: italic 500 22px/1 var(--serif); }
.mae .more { margin-top: 22px; max-width: 52ch; color: var(--ink-2); font-size: 17px; }
.regulars { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }

/* ── Testiranje: sumrak, gdje živi neon ── */
.dusk { overflow: hidden; color: #f6ead6; background: radial-gradient(55% 70% at 10% 100%, rgb(255 138 91 / .42), transparent 70%), linear-gradient(180deg, #2a2142 0%, #4a2a4a 60%, #6b3448 100%); }
.dusk .eyebrow { color: #ffd0e4; }
.dusk .sec-head h2 { color: #fff2df; }
.dusk .intro { color: #e3cfd8; }
.dusk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.vacancy { display: inline-grid; justify-items: start; gap: 12px; margin: 30px 0 0 70px; }
.vacancy .board { padding: 14px 22px; border-radius: 14px; background: #1b1529; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .1), 0 20px 40px -20px #000; }
.vacancy .word { color: transparent; font: 800 clamp(34px, 4.6vw, 60px)/1 var(--signage); letter-spacing: .14em; -webkit-text-stroke: 1.5px rgb(255 160 200 / .4); }
.vacancy small { color: #ffbf5e; font: 700 12px/1.2 var(--signage); letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 0 10px rgb(255 191 94 / .5); }
.shifts { display: grid; gap: 12px; }
.shift { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; }
.shift h3 { font-size: 21px; line-height: 1.2; }
.shift p { margin-top: 2px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.shift a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.dusk .form { margin-top: 6px; }

/* ── Pitanja ── */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 500 20px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rust); font: 400 24px/1 var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 16.5px; }

/* ── Popis bilješki, privatnost ── */
.page-top { padding-top: clamp(30px, 4vw, 56px); }
.page-title { margin-top: 14px; font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -.016em; }
.intro.flush { margin-left: 0; }
.page-top .notes-story { margin-top: clamp(28px, 3vw, 40px); }
.page-top .empty-note { margin-left: 0; }
.page-prose { margin-top: clamp(26px, 3vw, 40px); }

/* ── Jedna bilješka ── */
.post-wrap { padding: clamp(30px, 4vw, 56px) 0 clamp(70px, 8vw, 110px); }
.post-preview { margin-bottom: 20px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.post h1 { margin-top: 14px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.014em; }
.post .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.post .excerpt { margin-top: 18px; max-width: 60ch; color: var(--ink-2); font: italic 400 clamp(20px, 1.8vw, 24px)/1.45 var(--serif); }
.post-media { margin-top: 26px; aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: 0 30px 60px -40px rgb(91 52 25 / .7); }
.post-body { margin-top: 26px; font-size: 18px; }
.post-body p { margin-top: 16px; }
.post-body figure { margin: 26px 0 0; }
.post-body figure img, .post-body figure video { width: 100%; border-radius: 18px; box-shadow: 0 26px 50px -36px rgb(91 52 25 / .7); }
.post-body figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.post-cta { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px 18px; align-items: start; margin-top: 40px; padding: 22px; }
.post-cta h2 { font-size: 26px; line-height: 1.15; }
.post-cta p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.post-cta .actions { grid-column: 2; margin-top: 4px; }
.next-prev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.next-prev a { display: grid; gap: 4px; padding: 16px 18px; }
.next-prev a:last-child:not(:first-child) { text-align: right; }
.next-prev small { color: var(--muted); font: 700 11.5px/1.3 var(--signage); letter-spacing: .14em; text-transform: uppercase; }
.next-prev b { font: 500 19px/1.25 var(--serif); }
.post-side { position: sticky; top: 96px; }
.post-side-note { margin-top: 18px; color: var(--muted); font-size: 14.5px; text-align: center; }
.post-side-note b { color: var(--ink); font-weight: 600; }

/* ── Prilagodbe ── */
@media (max-width: 1100px) {
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes-story { grid-template-columns: 280px minmax(0, 1fr); }
  .note-row { grid-template-columns: 170px minmax(0, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 900px) {
  .hub-hero-grid, .dusk-grid, .mae, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-hero .hero-copy, .hub-hero .hero-more, .hero-map { grid-column: 1; grid-row: auto; }
  .hero-map { width: min(420px, 92%); margin-top: 34px; }
  .hub-hero .hero-more { margin-top: 30px; }
  .notes-story { grid-template-columns: minmax(0, 1fr); }
  .notes-story .map-side { display: none; }
  .mae .phone { width: min(260px, 70%); justify-self: center; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .empty-note, .vacancy { margin-left: 0; }
  .post-side { position: static; width: min(360px, 100%); }
}
@media (max-width: 620px) {
  .hub-brand b { font-size: 21px; }
  .goal { padding: 14px 16px; }
  .pin .tag { padding: 3px 10px 2px 8px; font-size: 13px; }
  .pin::after { height: 10px; }
  /* Na mobitelu je karta uska: oznaka ceste se skriva, WIP je kratak, da oznaka motela ostane vidljiva */
  .map-label, .map .wip-more { display: none; }
  .map .wip { left: 10px; top: 10px; }
  .stop-card { gap: 10px; padding: 10px 12px; }
  .stop-card .badge { width: 38px; height: 38px; }
  .stop-card .badge svg { width: 20px; height: 20px; }
  .stop-card h3 { font-size: 17px; }
  .stop-card p { font-size: 13px; }
  .note-row { grid-template-columns: 104px minmax(0, 1fr); }
  .note-row .thumb { min-height: 0; }
  .note-row .body { padding: 14px 14px 16px; }
  .note-row h3 { margin-top: 8px; font-size: 19px; }
  .note-row p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .note-row .meta { gap: 6px; font-size: 13px; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .level { grid-column: 1 / -1; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; min-height: 0; padding: 14px; }
  .level .lvl { grid-row: 1 / span 3; margin: 0; }
  .level h3, .level p, .level .chip { grid-column: 2; }
  .level.later { grid-column: auto; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
  .level.later .lvl { width: 30px; height: 42px; font-size: 15px; }
  .level.later .lvl small { font-size: 6px; }
  .level.later h3 { font-size: 16.5px; }
  .level.later p { display: none; }
  .level.later .chip { margin-top: 4px; padding: 3px 9px; font-size: 12px; }
  .shift { padding: 14px; }
  .post-cta { grid-template-columns: minmax(0, 1fr); }
  .post-cta .actions { grid-column: 1; }
  .next-prev { grid-template-columns: minmax(0, 1fr); }
}
