/* HlasPravdu.com – theme styles */

:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-light: #e63946;
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --text: #e8e8e8;
  --text-muted: #888;
  --border: #333;
  --accent: #cc0000;
  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(204, 0, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(204, 0, 0, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--red-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

/* ── TOP BAR ─────────────────────────────────────── */
.topbar {
  background: var(--red-dark);
  padding: 6px 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.topbar a { color: rgba(255,255,255,0.9); }

/* ── HEADER ──────────────────────────────────────── */
.site-header {
  background: var(--bg2);
  border-bottom: 3px solid var(--red);
  padding: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.hammer-sickle {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-titles {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-name span {
  color: var(--red-light);
}

.site-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.nav-inner a {
  display: block;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-inner a:hover,
.nav-inner a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ── HERO (homepage only) ────────────────────────── */
.hero-section {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(204, 0, 0, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(153, 0, 0, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, #240000 0%, #0a0a0a 60%, #0f0f0f 100%);
  border-bottom: 3px solid var(--red);
  padding: 120px 24px 110px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 44px;
}

.red-star-svg {
  width: 64px;
  height: 64px;
  fill: var(--red);
  filter: drop-shadow(0 0 18px rgba(204, 0, 0, 0.55));
  animation: starPulse 4s ease-in-out infinite;
}

.red-star-svg:nth-child(2) {
  width: 82px;
  height: 82px;
  animation-delay: 0.4s;
}

.red-star-svg:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(204, 0, 0, 0.55)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(230, 57, 70, 0.75)); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero-title .highlight {
  color: var(--red-light);
  background: linear-gradient(135deg, #ff3b4a 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #bdbdbd;
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border: 2px solid var(--red);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(204, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--red-light);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* ── LAW ALERT BOX ───────────────────────────────── */
.law-alert {
  position: relative;
  background:
    linear-gradient(135deg, rgba(204, 0, 0, 0.18) 0%, rgba(26, 0, 0, 0.6) 40%, var(--bg2) 100%);
  border: 1px solid rgba(204, 0, 0, 0.3);
  border-left: 5px solid var(--red);
  padding: 36px 40px;
  margin: 48px 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.law-alert::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(204, 0, 0, 0.2), transparent 70%);
  pointer-events: none;
  border-radius: 0 10px 0 0;
}

.law-alert-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.5);
}

.law-alert h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.law-alert p {
  color: #cfcfcf;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 720px;
}

.law-alert a {
  color: var(--red-light);
  font-weight: 600;
}

/* ── MAIN LAYOUT ─────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* ── SECTION HEADER ──────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── POST CARDS ──────────────────────────────────── */
.post-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card-image {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}

.post-card-content {
  flex: 1;
}

.post-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-light);
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: block;
}

.post-card-title:hover {
  color: var(--red-light);
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── FEATURED POST ───────────────────────────────── */
.post-card.featured {
  flex-direction: column;
  padding: 0;
  margin-bottom: 32px;
  border-bottom: none;
}

.post-card.featured .post-card-image {
  width: 100%;
  height: 240px;
  border-radius: 8px;
}

.post-card.featured .post-card-title {
  font-size: 1.4rem;
}

.post-card.featured .post-card-excerpt {
  -webkit-line-clamp: 3;
}

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar-widget {
  margin-bottom: 36px;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

/* Law info widget */
.law-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 8px 8px;
  padding: 20px;
}

.law-widget h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.law-widget p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.law-ref {
  font-size: 0.75rem;
  color: var(--red-light);
  font-weight: 600;
  border: 1px solid var(--red);
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
}

/* Flag widget */
.flag-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.flag-svg-wrap {
  flex-shrink: 0;
}

.flag-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.flag-text strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

/* ── ARTICLE / POST PAGE ─────────────────────────── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-light);
  border: 1px solid var(--red);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  color: #ccc;
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--bg2);
  color: var(--text-muted);
  font-style: italic;
}

.article-body a {
  color: var(--red-light);
  text-decoration: underline;
  text-decoration-color: rgba(230, 57, 70, 0.4);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
  color: #ccc;
}

.article-body img {
  max-width: 100%;
  border-radius: 6px;
  margin: 24px 0;
}

.article-body figure {
  margin: 28px 0;
}

.article-body figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Law highlight box in articles */
.article-body .law-box {
  background: linear-gradient(135deg, #1a0000, var(--bg2));
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 3px solid var(--red-dark);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .site-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-light);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── KLÍČOVÁ OTÁZKA BANNER ───────────────────────── */
.question-banner {
  background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--red);
  padding: 36px 24px;
}

.question-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.question-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.question-banner-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.question-banner-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
}

.question-banner-body em {
  color: var(--red-light);
  font-style: normal;
  font-weight: 600;
}

/* ── NO POSTS ─────────────────────────────────────── */
.no-posts {
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

/* ── PAGINATION ──────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 16px;
  }

  .site-name {
    font-size: 1.4rem;
  }

  .post-card.featured .post-card-image {
    height: 180px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .post-card {
    flex-direction: column;
  }

  .post-card-image {
    width: 100%;
    height: 160px;
  }
}
