/* =====================================================================
   ENGLISH LOUNGE — TEMA v2 „Moderno i čisto”
   Učitava se POSLIJE css/style.css i mijenja samo izgled (boje, razmake,
   tipografiju, kartice). Sadržaj i funkcije ostaju isti.
   Da je uključiš na pravom sajtu: u index.html ispod style.css dodaj
   <link rel="stylesheet" href="css/theme-v2.css">
   ===================================================================== */

:root {
  --bg: #FBF8F3;          /* topla, „latte” bijela */
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --ink: #111614;
  --ink-2: #5E6662;
  --line: #EBE3D7;
  --line-2: #DCD1C1;
  --latte: #F1E4D3;
  --coffee: #6F4A30;
  --accent: #0B5D3B;
  --accent-ink: #FFFFFF;
  --accent-soft: #EAF3EE;
  --pop: #111614;          /* drugo dugme je sada tamno, ne narandžasto */
  --pop-soft: #F4EFE7;
  --ok: #157A3F;
  --ok-soft: #EAF5EE;
  --bad: #B42318;
  --bad-soft: #FDEEEC;
  --radius: 14px;
  --shadow: none;
  --shadow-hover: 0 1px 2px rgba(17, 22, 20, .04), 0 8px 24px rgba(17, 22, 20, .06);
  --font: "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E100F;
    --surface: #151816;
    --surface-2: #1C201D;
    --ink: #F1F3F1;
    --ink-2: #9BA39E;
    --line: #262B28;
    --line-2: #323834;
    --accent: #5FD49A;
    --accent-ink: #062014;
    --accent-soft: #15261D;
    --pop: #F1F3F1;
    --pop-soft: #1C201D;
    --ok: #5FD49A;
    --ok-soft: #13261B;
    --bad: #FF7A6E;
    --bad-soft: #2C1715;
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* ---------- Osnova i tipografija ---------- */
body { font-family: var(--font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { max-width: 1120px; padding: 0 24px; }
main.wrap { padding-top: 48px; padding-bottom: 96px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; line-height: 1.04; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 16px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 1.5px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.muted, .small { color: var(--ink-2); }
.section { margin-top: 88px; }
.section-head { margin-bottom: 24px; }
::selection { background: var(--accent-soft); }

/* ---------- Zaglavlje ---------- */
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 68px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; }
.nav { gap: 2px; }
.nav a { font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); position: relative; }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a.active { background: transparent; color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav a.nav-cta { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 16px; margin-left: 6px; }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); filter: none; }
.lang-switch { background: transparent; border: 1px solid var(--line); padding: 2px; }
.lang-btn { font-weight: 600; font-size: 11.5px; letter-spacing: .06em; padding: 5px 9px; }
.lang-btn.on { background: var(--surface-2); color: var(--ink); box-shadow: none; }

/* ---------- Dugmad, oznake ---------- */
.btn { border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; transition: background .15s, color .15s, border-color .15s, transform .08s; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { filter: none; background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-pop { background: var(--ink); color: var(--bg); }
.btn-pop:hover { filter: none; background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.tag { font-weight: 600; font-size: 11.5px; letter-spacing: .02em; padding: 3px 9px; background: var(--surface-2); color: var(--ink-2); }
.tag-level { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.chip { border: 1px solid var(--line); background: transparent; font-weight: 500; padding: 7px 15px; }
.chip:hover { border-color: var(--line-2); background: var(--surface); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Kartice: tanke linije, bez sjenke ---------- */
.card, .choice, .stat, .hero-card, .level-card, .test-card, .q-card, .score-card, .lesson-block, .sq, .wl-form, .share-box, .story-text, .player, .topic-opt, .words-table, .lesson-cta {
  box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius);
}
a.card:hover, .choice:hover, .level-card:hover, .test-card:hover { transform: none; border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.card { padding: 24px; gap: 12px; }
.card h3 { font-size: 17.5px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card-ic, .choice .ic { background: var(--surface-2) !important; border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; }
.cards { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bar { background: var(--surface-2); height: 4px; }
.bar > i { background: var(--accent); }

/* ---------- Početna ---------- */
.hero { gap: 64px; padding: 40px 0 16px; grid-template-columns: 1.25fr 1fr; }
.hero p.lead { font-size: 19px; line-height: 1.6; max-width: 540px; margin-bottom: 36px; }
.hero-card { padding: 28px; border-radius: 20px; background: var(--surface); position: relative; }
.hero-q { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.hero-opts span { border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.hero-opts span.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
/* statistika kao jedan red sa pregradama */
.stats { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { border: 0 !important; border-radius: 0 !important; background: transparent; padding: 28px 24px; }
.stat + .stat { border-left: 1px solid var(--line) !important; }
.stat .num { font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.choice { padding: 28px; border-radius: 16px; }
.choice-grid { gap: 20px; }

/* ---------- Nivoi i lekcije ---------- */
.level-badge { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; border-radius: 8px; }
.level-head { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.level-group:first-of-type .level-head, .topic-group:first-of-type .level-head { border-top: 0; padding-top: 0; }
.level-head h2 { font-size: 24px; }
.back { font-weight: 500; }
.lesson { max-width: 760px; }
.lesson-block { padding: 28px 32px; }
.ex-row { border-color: var(--line); }
.tip { background: var(--accent-soft); border: 0; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.lesson-cta { background: var(--ink); color: var(--bg); border: 0; }
.lesson-cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.lesson-cta .btn-primary { background: var(--bg); color: var(--ink); }

/* ---------- Kviz ---------- */
.step-num { background: var(--ink); color: var(--bg); font-weight: 600; }
.topic-opt { background: var(--surface); }
.topic-opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.setup-foot { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.q-card { padding: 36px; border-radius: 20px; }
.q-prompt { font-size: clamp(22px, 3vw, 30px); font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.opt { border: 1px solid var(--line); border-radius: 12px; font-weight: 500; background: var(--surface); }
.opt:hover:not([disabled]) { border-color: var(--ink); background: var(--surface); }
.opt .key { background: var(--surface-2); border-radius: 6px; font-weight: 600; }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.fill-input, .sq-input, .w-search, .w-pos, .wl-email input, .wl-level select { border: 1px solid var(--line-2) !important; border-radius: 12px !important; background: var(--surface); }
.fill-input:focus, .sq-input:focus, .w-search:focus, .wl-email input:focus, .wl-level select:focus { outline: none; border-color: var(--ink) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent) !important; }
.feedback { border-radius: 14px; border: 1px solid var(--line); }
.feedback.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.feedback.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.word { border: 1px solid var(--line-2); border-radius: 10px; font-weight: 500; box-shadow: none; }
.ring { box-shadow: none; }
.score-card { padding: 40px; border-radius: 20px; }

/* ---------- Priče ---------- */
.story-text { background: var(--surface); padding: 32px 36px; font-size: 18.5px; line-height: 1.8; }
.sent.on { background: var(--accent-soft); box-shadow: none; }
.gw { text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 4px; }
.player { background: var(--surface); }
.sq { padding: 24px; }
.sq-num { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.voice-note { font-size: 13px; }

/* ---------- Riječi ---------- */
.words-table { overflow: hidden; }
.w-head { background: var(--surface-2); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.w-row { border-color: var(--line); }
.w-row:nth-child(odd):not(.w-head) { background: transparent; }
.w-row:hover:not(.w-head) { background: var(--surface-2); }
.say { background: transparent; border: 1px solid var(--line); border-radius: 8px; }
.say:hover { background: var(--surface-2); }
.wl-form { background: var(--surface); padding: 28px; }
.wl-head h3 { font-size: 22px; letter-spacing: -.025em; }

/* ---------- Test nivoa, dijeljenje ---------- */
.test-badge { font-weight: 600; }
.level-badge.big { border-radius: 16px; }
.topic-result { border-color: var(--line); }
.share-box { background: var(--surface); }

/* ---------- Podnožje, kolačići ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13.5px; }
.legal-links a, .legal-links button, .seo-links a { text-decoration: none; }
.legal-links a:hover, .legal-links button:hover, .seo-links a:hover { text-decoration: underline; color: var(--ink); }
.consent-bar { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(17, 22, 20, .12); }
.btn-consent { background: var(--ink); color: var(--bg); }

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  main.wrap { padding-top: 28px; padding-bottom: 72px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 12px; }
  .hero p.lead { font-size: 17px; }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--accent); }
  .nav a, .nav a.nav-cta { flex: 1; text-align: center; padding: 10px 4px; font-size: 14px; margin-left: 0; }
  .lang-btn { padding: 8px 10px; }
  .section { margin-top: 56px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 18px 10px; }
  .stat .num { font-size: 28px; }
  .q-card { padding: 22px; }
  .lesson-block { padding: 20px; }
  .story-text { padding: 20px; font-size: 17.5px; }
  .level-head { margin-top: 36px; padding-top: 24px; }
}
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
}

/* =====================================================================
   v2 — slike i „kafe” atmosfera
   ===================================================================== */
.ill { position: relative; overflow: hidden; }
.ill svg { display: block; width: 100%; height: 100%; }
.ill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ill:not(.has-photo) img { opacity: 0; }
.ill.has-photo svg { visibility: hidden; }
/* para iz šolje se lagano diže */
.ill-steam path { animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.ill-steam path:nth-child(2) { animation-delay: .6s; } .ill-steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.9); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.05); } }
.ill-float { animation: floaty 6s ease-in-out infinite; }
.ill-float2 { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ill-steam path, .ill-float { animation: none; } }

.v2-hero { grid-template-columns: 1.05fr 1fr; align-items: center; }
.ill-hero { aspect-ratio: 540 / 480; border-radius: 28px; }
.ill-hero.has-photo { box-shadow: 0 30px 60px -30px rgba(74, 47, 29, .35); }

.v2-band { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); background: #16201B; color: #F4EFE7; border-radius: 20px; overflow: hidden; }
.v2-feat { display: flex; gap: 14px; align-items: flex-start; padding: 26px 28px; }
.v2-feat + .v2-feat { border-left: 1px solid rgba(255, 255, 255, .1); }
.v2-feat-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: rgba(255, 255, 255, .08); }
.v2-feat b { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 2px; }
.v2-feat span { color: rgba(244, 239, 231, .7); font-size: 14px; line-height: 1.5; }

.v2-choices { grid-template-columns: repeat(3, 1fr); }
.v2-choice { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.ill-card { aspect-ratio: 2 / 1; border-bottom: 1px solid var(--line); }
.v2-choice-body { padding: 20px 22px 24px; }
.v2-choice-body h3 { margin-bottom: 6px; }
.v2-choice:hover .ill-card svg, .v2-choice:hover .ill-card img { transform: scale(1.03); }
.ill-card svg, .ill-card img { transition: transform .4s ease; }

@media (prefers-color-scheme: dark) {
  .v2-band { background: #1C201D; }
  .ill-hero:not(.has-photo), .ill-card:not(.has-photo) { filter: brightness(.92); }
}
@media (max-width: 860px) {
  .v2-hero { grid-template-columns: 1fr; }
  .ill-hero { max-width: 480px; margin: 0 auto; width: 100%; }
  .v2-band { grid-template-columns: 1fr; margin-top: 36px; }
  .v2-feat + .v2-feat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .v2-feat { padding: 18px 20px; }
  .v2-choices { grid-template-columns: 1fr; }
}
.v2-hero h1 { font-size: clamp(36px, 5.2vw, 60px); }
.v2-feat-ic { background: rgba(255, 255, 255, .92); }
