/* ===== ŘidičInfo.cz – hlavní stylesheet ===== */
:root {
  --c-bg: #f8f9fa;
  --c-surface: #ffffff;
  --c-border: #e2e8f0;
  --c-text: #1a202c;
  --c-muted: #64748b;
  --c-accent: #1d4ed8;
  --c-accent-light: #dbeafe;
  --c-accent-dark: #1e3a8a;
  --c-warn: #fef3c7;
  --c-warn-border: #f59e0b;
  --c-tip: #dcfce7;
  --c-tip-border: #16a34a;
  --c-danger: #fee2e2;
  --c-danger-border: #dc2626;
  --c-hero-from: #1e3a8a;
  --c-hero-to: #1d4ed8;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', serif;
}
[data-theme="dark"] {
  --c-bg: #0f172a;
  --c-surface: #1e293b;
  --c-border: #334155;
  --c-text: #f1f5f9;
  --c-muted: #94a3b8;
  --c-accent: #60a5fa;
  --c-accent-light: #1e3a8a;
  --c-accent-dark: #93c5fd;
  --c-warn: #451a03;
  --c-warn-border: #f59e0b;
  --c-tip: #052e16;
  --c-tip-border: #16a34a;
  --c-danger: #450a0a;
  --c-danger-border: #dc2626;
  --c-hero-from: #0f172a;
  --c-hero-to: #1e3a8a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  transition: background .3s, color .3s;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: background .3s;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: var(--c-text); }
.logo svg { flex-shrink: 0; }
.logo span { color: var(--c-accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--c-muted); transition: color .2s; }
.nav-links a:hover { color: var(--c-accent); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-theme {
  background: none; border: 1px solid var(--c-border);
  border-radius: 2rem; padding: .35rem .75rem;
  cursor: pointer; font-size: .8rem; color: var(--c-muted);
  transition: all .2s;
}
.btn-theme:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%);
  color: #fff; padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2rem; padding: .3rem .9rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  margin-bottom: 1.2rem; text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; opacity: .88; max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-primary {
  background: #fff; color: var(--c-accent-dark);
  padding: .7rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); text-decoration: none; }
.btn-outline {
  background: transparent; color: #fff;
  padding: .7rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  border: 2px solid rgba(255,255,255,.5); cursor: pointer;
  transition: all .2s; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; text-decoration: none; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual svg { width: 100%; max-width: 420px; filter: drop-shadow(0 8px 32px rgba(0,0,0,.25)); }

/* === SECTION LAYOUT === */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label {
  display: inline-block; color: var(--c-accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .6rem; }
.section-header p { color: var(--c-muted); max-width: 560px; margin: 0 auto; }

/* === CARDS === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--c-muted); }
.card-link { display: inline-block; margin-top: .75rem; font-size: .85rem; font-weight: 600; color: var(--c-accent); }

/* === ALERT BOXES === */
.box { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; border-left: 4px solid; }
.box-warn { background: var(--c-warn); border-color: var(--c-warn-border); }
.box-tip { background: var(--c-tip); border-color: var(--c-tip-border); }
.box-danger { background: var(--c-danger); border-color: var(--c-danger-border); }
.box strong { display: block; margin-bottom: .25rem; font-size: .9rem; }

/* === FAQ === */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.1rem 0; font-size: 1rem; font-weight: 600; color: var(--c-text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .icon { flex-shrink: 0; transition: transform .3s; font-size: 1.2rem; color: var(--c-accent); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1rem; font-size: .95rem; color: var(--c-muted); line-height: 1.75; }
.faq-a.open { display: block; }

/* === ARTICLE PAGE === */
.article-hero {
  background: linear-gradient(135deg, var(--c-hero-from), var(--c-hero-to));
  color: #fff; padding: 3.5rem 1.5rem 3rem;
}
.article-hero-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: .8rem; opacity: .75; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 .4rem; }
.article-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.25; }
.article-meta { margin-top: .75rem; font-size: .85rem; opacity: .75; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.article-body { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--c-border); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--c-accent); }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: .75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--c-text); }

/* === TIPS SECTION === */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.tip-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.tip-icon { flex-shrink: 0; width: 40px; height: 40px; }
.tip-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.tip-card p { font-size: .85rem; color: var(--c-muted); }

/* === FOOTER === */
.site-footer {
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: .88rem; color: var(--c-muted); margin-top: .6rem; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .88rem; color: var(--c-muted); transition: color .2s; }
.footer-col a:hover { color: var(--c-accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.footer-bottom p { font-size: .8rem; color: var(--c-muted); }
.footer-disclaimer { font-size: .78rem; color: var(--c-muted); margin-top: .5rem; line-height: 1.5; }

/* === CONTACT FORM === */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--c-border); border-radius: .5rem;
  background: var(--c-bg); color: var(--c-text);
  font-size: .95rem; font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-light);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--c-accent); color: #fff;
  padding: .75rem 2rem; border-radius: var(--radius);
  font-weight: 700; border: none; cursor: pointer;
  font-size: 1rem; transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--c-accent-dark); transform: translateY(-1px); }

/* === ABOUT PAGE === */
.about-hero { background: linear-gradient(135deg, var(--c-hero-from), var(--c-hero-to)); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.about-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.about-hero p { opacity: .85; max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.about-body { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.team-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-card svg { margin: 0 auto 1rem; }
.team-card h4 { font-weight: 700; margin-bottom: .25rem; }
.team-card p { font-size: .85rem; color: var(--c-muted); }

/* === PROSE PAGES (privacy, terms) === */
.prose-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.prose-page h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.prose-page .updated { font-size: .85rem; color: var(--c-muted); margin-bottom: 2rem; }
.prose-page h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .6rem; }
.prose-page p { margin-bottom: 1rem; color: var(--c-muted); }
.prose-page ul { margin: .5rem 0 1rem 1.5rem; color: var(--c-muted); }
.prose-page li { margin-bottom: .35rem; }

/* === ARTICLE LIST PAGE === */
.articles-hero { background: linear-gradient(135deg, var(--c-hero-from), var(--c-hero-to)); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card-tag { font-size: .75rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.article-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.article-card p { font-size: .875rem; color: var(--c-muted); flex: 1; }
.article-card-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--c-muted); }

/* === MOBILE NAV === */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--c-surface); padding: 1.5rem;
  flex-direction: column; gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--c-text); }
.mobile-nav a { font-size: 1.1rem; font-weight: 600; color: var(--c-text); padding: .6rem 0; border-bottom: 1px solid var(--c-border); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.5rem 1rem; }
  .article-body { padding: 1.5rem 1rem; }
}

/* === HIGHLIGHT === */
.highlight-strip {
  background: var(--c-accent-light); border-radius: var(--radius);
  padding: 2rem 1.5rem; margin: 2rem 0;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.highlight-strip svg { flex-shrink: 0; }
.highlight-strip h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; color: var(--c-accent-dark); }
.highlight-strip p { font-size: .9rem; color: var(--c-muted); }

/* === STATS BAR === */
.stats-bar { background: var(--c-accent); color: #fff; padding: 2rem 1.5rem; }
.stats-bar-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-item span { font-size: .85rem; opacity: .85; }
@media (max-width: 700px) { .stats-bar-inner { grid-template-columns: repeat(2, 1fr); } }
