/* styles.css — Ofsajd. Tři témata: editorial / stadium / night. Akcent přepisuje --accent. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Archivo+Black&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Oswald:wght@500;600;700&display=swap');

:root {
  --accent: #e3261f;
  --accent-ink: #fff;

  /* default = editorial */
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #17130d;
  --ink-2: #4a443a;
  --ink-3: #837b6d;
  --line: #e3ddd0;
  --line-2: #d3cbb9;
  --shadow: 0 1px 2px rgba(30,24,12,.05), 0 8px 24px rgba(30,24,12,.06);
  --shadow-lg: 0 12px 40px rgba(30,24,12,.14);
  --radius: 14px;
  --radius-sm: 9px;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-num: 'Oswald', 'Archivo', sans-serif;

  --head-weight: 800;
  --head-family: var(--font-serif);
  --head-spacing: -0.01em;
  --head-style: normal;
  --title-transform: none;
}

[data-theme="editorial"] {
  --head-family: var(--font-serif);
  --head-weight: 600;
  --head-spacing: -0.011em;
}

[data-theme="stadium"] {
  --bg: #f1f0ec;
  --bg-2: #e7e6e0;
  --surface: #ffffff;
  --surface-2: #f7f7f4;
  --ink: #0e1410;
  --ink-2: #404a43;
  --ink-3: #76817a;
  --line: #dfe0da;
  --line-2: #cdd0c7;
  --accent: #15a05a;
  --accent-ink: #fff;
  --head-family: var(--font-display);
  --head-weight: 800;
  --head-spacing: -0.02em;
  --title-transform: none;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(10,20,14,.06), 0 8px 22px rgba(10,20,14,.07);
}

[data-theme="night"] {
  --bg: #0c0f14;
  --bg-2: #11151c;
  --surface: #161b23;
  --surface-2: #1c222c;
  --ink: #f2f5f8;
  --ink-2: #aeb8c4;
  --ink-3: #74808e;
  --line: #262e39;
  --line-2: #323c49;
  --accent: #c6ff3d;
  --accent-ink: #0c0f14;
  --head-family: var(--font-display);
  --head-weight: 800;
  --head-spacing: -0.018em;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.app-head {
  font-family: var(--head-family);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  text-wrap: balance;
  line-height: 1.06;
}

/* scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* utility focus ring */
.focusable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes ofs-rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes ofs-fade { from { } to { } }
@keyframes ofs-pop { from { transform: scale(.97) translateY(6px); } to { transform: none; } }

/* hover interakce */
.std-card, .hero-card, .list-card { will-change: transform; }
.std-card:hover, .hero-card:hover, .list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }
.aside-row { transition: background .14s; }
.aside-row:hover { background: var(--bg-2); }
.chip-row::-webkit-scrollbar { height: 0; }

/* ===== Responsivita (sdílené standalone i WP téma) ===== */
@media (max-width: 1180px) { .sync-wrap { display: none !important; } }
@media (max-width: 1080px) {
  .feed-layout { grid-template-columns: minmax(0,1fr) !important; }
  .aside { display: none !important; }
}
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr !important; }
  .flow-row { flex-direction: column !important; align-items: stretch !important; }
  .flow-row > svg { transform: rotate(90deg); margin: 0 auto; }
}
@media (max-width: 680px) { .wide-card { grid-template-columns: 1fr !important; } }
@media (max-width: 760px) {
  .desk-nav { display: none !important; }
  .search-btn { display: none !important; }
  .mobile-nav { display: block !important; }
  .search-btn + button { display: grid; }
}
@media (min-width: 761px) { .search-btn + button { display: none; } }
@keyframes ofs-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
