/*
Theme Name: CZ Interview Scandal
Theme URI: https://example.com
Description: Téma advertorial/blog pro český web o televizním interview-skandálu. Brand a doména se odvozují z HTTP_HOST (tab_brand()/tab_host()).
Author: Site Production
Version: 2.0.0
License: GNU General Public License v2 or later
Text novaqflow.com: cz-interview-scandal
*/

/* ==========================================================================
   Základ — systémový font stack, bez externích závislostí, od 360 px výše.
   ========================================================================== */

:root {
  --ink: #16191d;
  --ink-soft: #3a4148;
  --muted: #5d646c;
  --accent: #b3122f;
  --accent-dark: #8e0d25;
  --paper: #ffffff;
  --bg: #f4f3ef;
  --bg-soft: #ecebe5;
  --line: #ddd9d0;
  --footer: #1b1f24;
  --radius: 6px;
  --maxw: 1120px;
  --articlew: 740px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  color: var(--accent-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--accent);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.brand-text strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--bg-soft);
  }
}

/* --------------------------------------------------------------------------
   Drobečková navigace
   -------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.4rem 0 1.2rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Článek
   -------------------------------------------------------------------------- */

.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .article {
    padding: 1.4rem 1.1rem 1.8rem;
  }
}

.disclosure {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.disclosure-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.35rem 0 1.4rem;
}

.article-category {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article h1 {
  font-size: clamp(1.7rem, 3.4vw + 1rem, 2.6rem);
  margin-bottom: 0.5em;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.8rem 0;
  border-top: 1px solid var(--bg-soft);
  border-bottom: 1px solid var(--bg-soft);
  margin-bottom: 1.6rem;
}

.article-body {
  max-width: var(--articlew);
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 1.9em;
  padding-top: 0.4em;
}

.article-body h3 {
  font-size: 1.2rem;
  margin-top: 1.4em;
}

.article-body p {
  font-size: 1.04rem;
  line-height: 1.78;
}

.article-body ul {
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

figure {
  margin: 1.8rem 0;
}

figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.55rem;
}

figcaption .credit {
  color: #9aa0a6;
}

.pull-quote {
  border-left: 4px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pull-quote footer {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin-top: 0.6rem;
}

.editor-note {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   Statické stránky
   -------------------------------------------------------------------------- */

.page {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem 2.5rem;
  margin: 0 0 2rem;
}

.page h1 {
  font-size: clamp(1.6rem, 3vw + 0.9rem, 2.2rem);
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--bg-soft);
}

.page h2 {
  font-size: 1.3rem;
  margin-top: 1.7em;
}

.page p,
.page li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.page ul {
  padding-left: 1.3rem;
}

.page li {
  margin-bottom: 0.45em;
}

.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--bg);
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.contact-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
}

.contact-block h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.contact-block p {
  margin-bottom: 0.4em;
}

/* Formulář */

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--accent);
  background: #fdf3f4;
}

.field-error {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.checkbox-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checkbox-field input {
  margin-top: 0.3rem;
  flex: 0 0 auto;
}

.checkbox-field label {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
  text-decoration: none;
}

.form-success {
  display: none;
  background: #e9f5ec;
  border: 1px solid #bfe3c9;
  color: #1e6b34;
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-top: 1.2rem;
}

.form-success.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer);
  color: #c9cdd2;
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #30363d;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-footer nav a {
  display: block;
  color: #c9cdd2;
  padding: 0.22rem 0;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--paper);
}

.footer-bottom {
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: #8f969d;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cookie lišta
   -------------------------------------------------------------------------- */

.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
  padding: 1.1rem 0;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 420px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.cookie-text strong {
  color: var(--ink);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg);
  color: var(--ink);
}
