/* ================================================================
   IPTV SUOMI STREAM — WordPress Theme Stylesheet
   ================================================================ */

/* ---- Design tokens ---- */
:root {
  --bg:        #050D1C;
  --bg-soft:   #070F20;
  --bg-card:   rgba(10,31,60,0.55);
  --cyan:      #00D4FF;
  --cyan-dark: #0095E8;
  --text:      #F0F4FF;
  --text-soft: #B8C5E0;
  --text-muted:#6B7FA3;
  --success:   #00E676;
  --glass:     rgba(10,31,60,0.55);
  --border:    1px solid rgba(0,212,255,0.12);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font:      'Space Grotesk', sans-serif;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --header-h:  68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5,13,28,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: .9rem; font-weight: 800; color: #fff; white-space: nowrap; }
.logo-sub  { font-size: .55rem; font-weight: 700; color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; }

/* Nav */
.primary-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {}
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-item.active .nav-link { color: var(--cyan); background: rgba(0,212,255,0.08); }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #050D1C !important;
  font-size: .85rem;
  font-weight: 800;
  border-radius: 50px;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,212,255,0.5); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 100%; height: 2px; background: var(--text-soft); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ================================================================
   BLOG HERO
   ================================================================ */
.blog-hero {
  background: linear-gradient(135deg, rgba(0,149,232,0.08), rgba(0,212,255,0.04));
  border-bottom: var(--border);
  padding: 64px 24px;
  text-align: center;
}
.blog-hero-inner { max-width: 700px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}
.blog-hero p { font-size: 1rem; color: var(--text-soft); }

/* ================================================================
   BLOG CONTAINER & GRID
   ================================================================ */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Category filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.cat-chip {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(10,31,60,0.5);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: all .2s;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Post card */
.post-card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.3);
}

.post-card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img { transform: scale(1.04); }
.post-card-img-placeholder {
  background: linear-gradient(135deg, rgba(0,149,232,0.08), rgba(0,212,255,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: inline-block;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--cyan); }
.post-card-excerpt { font-size: .82rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 14px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: auto;
}
.post-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; }
.blog-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.15);
  background: rgba(10,31,60,0.5);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0 12px;
  transition: all .2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
}

.no-posts { text-align: center; padding: 60px 24px; }
.no-posts p { color: var(--text-soft); margin-bottom: 20px; }

/* ================================================================
   ARTICLE HERO (single post)
   ================================================================ */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #070F20, #0A1F3C);
}
.article-hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.article-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,13,28,0.95) 0%, rgba(5,13,28,0.5) 60%, transparent 100%);
}
.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  width: 100%;
}
.article-cat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: var(--text-soft);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ================================================================
   ARTICLE LAYOUT
   ================================================================ */
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ---- TOC ---- */
.toc-box {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.toc-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#tocNav ol, #sidebarTocNav ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#tocNav li, #sidebarTocNav li { padding-left: calc(var(--depth,0) * 12px); }
#tocNav a, #sidebarTocNav a {
  font-size: .83rem;
  color: var(--text-soft);
  transition: color .2s;
  line-height: 1.4;
  display: block;
  padding: 3px 0;
}
#tocNav a:hover, #sidebarTocNav a:hover { color: var(--cyan); }
#tocNav a.active, #sidebarTocNav a.active { color: var(--cyan); font-weight: 700; }

/* ---- Article body ---- */
.article-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,212,255,0.08);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.article-body li::marker { color: var(--cyan); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--text-soft); font-style: italic; }
.article-body a { color: var(--cyan); text-decoration: underline; }
.article-body a:hover { color: #fff; }
.article-body blockquote {
  border-left: 3px solid var(--cyan);
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(0,212,255,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-soft);
}
.article-body code {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: .85em;
  color: var(--cyan);
  font-family: 'Courier New', monospace;
}
.article-body pre {
  background: rgba(0,0,0,0.4);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.article-body pre code { background: none; border: none; padding: 0; font-size: .88rem; color: var(--text-soft); }
.article-body img {
  border-radius: var(--radius);
  margin: 20px 0;
  border: var(--border);
  width: 100%;
  height: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
}
.article-body th {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(0,212,255,0.15);
}
.article-body td {
  padding: 10px 14px;
  border: 1px solid rgba(0,212,255,0.08);
  color: var(--text-soft);
}
.article-body tr:nth-child(even) td { background: rgba(0,212,255,0.03); }

/* ---- Tags ---- */
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0; }
.tag-chip {
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(0,212,255,0.05);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}
.tag-chip:hover { color: var(--cyan); border-color: rgba(0,212,255,0.4); }

/* ---- Share ---- */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.share-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  transition: all .2s;
  background: none;
  text-decoration: none;
}
.share-btn.fb { color: #1877F2; border-color: rgba(24,119,242,0.25); }
.share-btn.fb:hover { background: rgba(24,119,242,0.1); }
.share-btn.tw { color: #fff; border-color: rgba(255,255,255,0.15); }
.share-btn.tw:hover { background: rgba(255,255,255,0.07); }
.share-btn.wa { color: #25D366; border-color: rgba(37,211,102,0.25); }
.share-btn.wa:hover { background: rgba(37,211,102,0.1); }
.share-btn.copy { color: var(--cyan); border-color: rgba(0,212,255,0.25); }
.share-btn.copy:hover { background: rgba(0,212,255,0.08); }
.share-btn.copied { color: var(--success); border-color: rgba(0,230,118,0.3); }

/* ---- CTA Box ---- */
.article-cta-box {
  margin: 36px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,149,232,0.12), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,212,255,0.2);
}
.cta-box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  flex-wrap: wrap;
}
.cta-box-eyebrow { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); margin-bottom: 6px; }
.cta-box-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.cta-box-desc { font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; }
.cta-box-price { font-size: .9rem; color: var(--text-soft); }
.cta-box-price strong { color: var(--cyan); font-size: 1.1rem; }
.cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #050D1C !important;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .25s;
  box-shadow: 0 4px 18px rgba(0,212,255,0.3);
}
.cta-box-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,212,255,0.5); }

/* ---- Post navigation ---- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.post-nav-item {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 16px 18px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-nav-item:hover { border-color: rgba(0,212,255,0.3); }
.post-nav-item.next { text-align: right; }
.pn-dir { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.pn-title { font-size: .88rem; font-weight: 600; color: var(--text); }

/* ---- Related posts ---- */
.related-posts { margin: 36px 0; }
.related-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
  display: block;
}
.related-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
.related-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card-placeholder { aspect-ratio: 16/9; background: rgba(0,212,255,0.05); }
.related-card-body { padding: 12px; }
.related-date { font-size: .7rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.related-card-body h4 { font-size: .85rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ---- Sidebar ---- */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,149,232,0.1), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.sidebar-cta-eyebrow { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: 6px; }
.sidebar-cta-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta-price { font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; }
.sidebar-cta-price strong { color: var(--cyan); }
.sidebar-cta-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sidebar-cta-features li {
  font-size: .8rem;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}
.sidebar-cta-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #050D1C !important;
  font-weight: 800;
  font-size: .88rem;
  border-radius: 10px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(0,212,255,0.25);
}
.sidebar-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,255,0.4); }

.sidebar-toc {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 18px;
}

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-section { margin-top: 40px; }
.comments-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.comment { background: var(--glass); border: var(--border); border-radius: var(--radius); padding: 18px; }
.comment-body { font-size: .88rem; color: var(--text-soft); }
.comment-form-wrap { margin-top: 32px; }
.comment-form label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10,31,60,0.7);
  border: var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--cyan); }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form .submit input[type=submit],
.form-submit input[type=submit] {
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #050D1C;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .25s;
}

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.page-main { min-height: 60vh; }
.page-container { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.page-header h1 { font-size: 2rem; font-weight: 900; margin-bottom: 24px; }
.page-content { font-size: .97rem; line-height: 1.8; color: var(--text-soft); }
.page-content h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 28px 0 12px; }
.page-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }

/* ================================================================
   404 PAGE
   ================================================================ */
.error-main { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.error-container { text-align: center; max-width: 480px; }
.error-code { font-size: 6rem; font-weight: 900; background: linear-gradient(135deg, var(--cyan-dark), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.error-container h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.error-container p { color: var(--text-soft); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   GENERIC BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #050D1C !important;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  border-radius: 50px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.45); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-soft) !important;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all .25s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan) !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #030A14;
  border-top: var(--border);
  margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(0,212,255,0.06);
}
.footer-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 14px 0 18px; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid;
  width: fit-content;
  transition: all .2s;
}
.contact-chip.wapp { color: #25D366; border-color: rgba(37,211,102,0.25); background: rgba(37,211,102,0.06); }
.contact-chip.wapp:hover { background: rgba(37,211,102,0.14); }
.contact-chip.gmail { color: #EA4335; border-color: rgba(234,67,53,0.25); background: rgba(234,67,53,0.06); }
.contact-chip.gmail:hover { background: rgba(234,67,53,0.14); }

.footer-col-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-col a { font-size: .85rem; color: var(--text-muted); transition: color .2s; }
.footer-links-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal-links { display: flex; gap: 14px; }
.footer-legal-links a { color: var(--text-muted); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--cyan); }

/* Floating WhatsApp */
.float-wapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all .25s;
}
.float-wapp:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.6); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5,13,28,0.98);
    backdrop-filter: blur(20px);
    border-bottom: var(--border);
    padding: 16px 24px;
    display: none;
    margin: 0;
  }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 10px 14px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box-inner { flex-direction: column; text-align: center; }
  .toc-box { display: none; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 40px 16px; }
  .blog-container { padding: 28px 16px 60px; }
  .article-wrap { padding: 24px 16px 60px; }
  .article-title { font-size: 1.4rem; }
}
