/*
Theme Name:  SK-Hosting
Theme URI:   https://sk-hosting.com
Author:      SK-Hosting Team
Author URI:  https://sk-hosting.com
Description: Modernes Dark/Light-Theme für SK-Hosting.com mit Artikel-Unterstützung, Inhaltsverzeichnis, Lesezeit und Kategorieseiten.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sk-hosting
Tags:        dark-theme, blog, tech, hosting, two-columns, custom-menu, featured-images, sticky-post
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS – DARK (DEFAULT)
═══════════════════════════════════════════════════════════════ */
:root {
  --bg:         #0b0f1a;
  --bg2:        #111623;
  --bg3:        #161d2e;
  --border:     #1e2840;
  --accent:     #3b82f6;
  --accent2:    #06b6d4;
  --accent3:    #8b5cf6;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --card:       #131929;
  --card-hover: #192035;
  --green:      #10b981;
  --orange:     #f59e0b;
  --red:        #ef4444;
  --font-head:  'Manrope', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     12px;
  --nav-bg:     rgba(11,15,26,.85);
  --shadow:     rgba(0,0,0,.4);
  --code-bg:    #0d1117;
  --code-border:#21262d;
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS – LIGHT
═══════════════════════════════════════════════════════════════ */
html.light {
  --bg:         #f8fafc;
  --bg2:        #f1f5f9;
  --bg3:        #e9eef6;
  --border:     #cbd5e1;
  --accent:     #2563eb;
  --accent2:    #0891b2;
  --accent3:    #7c3aed;
  --text:       #0f172a;
  --muted:      #64748b;
  --card:       #ffffff;
  --card-hover: #f1f5f9;
  --green:      #059669;
  --orange:     #d97706;
  --red:        #dc2626;
  --nav-bg:     rgba(248,250,252,.9);
  --shadow:     rgba(0,0,0,.1);
  --code-bg:    #1e2433;
  --code-border:#2d3748;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s, border-color .3s;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.main-navigation ul li a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s;
  text-decoration: none;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  color: var(--text);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switcher-wrap ul { display:flex; gap:4px; list-style:none; margin:0; padding:0; }
.lang-switcher-wrap a { padding:4px 8px; border-radius:4px; font-size:.8rem; text-transform:uppercase; }
.lang-switcher-wrap .current-lang a { background:var(--accent); color:#fff; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 5%;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s;
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59,130,246,.25);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(59,130,246,.45);
  transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.08); }
.icon-sun  { display: none; }
.icon-moon { display: block; }
html.light .icon-sun  { display: block; }
html.light .icon-moon { display: none; }

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.breadcrumb-bar {
  padding: 14px 5%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--muted); transition: color .2s; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar .sep { opacity: .4; }
.breadcrumb-bar .current { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   HERO (Frontpage)
═══════════════════════════════════════════════════════════════ */
.site-hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 5% 60px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  bottom: 0; right: 5%;
}

.hero-inner { max-width: 760px; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .8rem;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.site-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════════════════════════════ */
.site-section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
}
.section-header { margin-bottom: 48px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS (Universal)
═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.04), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover {
  background: var(--card-hover);
  border-color: rgba(59,130,246,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow);
}
.card:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   GUIDE / ARTICLE CARDS (Archiv & Frontpage)
═══════════════════════════════════════════════════════════════ */
.guide-card { display: flex; flex-direction: column; }
.guide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.guide-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 100px;
}
.guide-time { font-size: .75rem; color: var(--muted); margin-left: auto; }
.guide-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.guide-excerpt {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.6;
}
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-diff { display: flex; gap: 3px; }
.diff-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.diff-dot.active { background: var(--green); }
.guide-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .2s;
}
.card:hover .guide-arrow { transform: translateX(4px); }

/* Category badge colours */
.cat-php       { background: rgba(139,92,246,.15); color: var(--accent3); }
.cat-html      { background: rgba(245,158,11,.15);  color: var(--orange); }
.cat-css       { background: rgba(6,182,212,.15);   color: var(--accent2); }
.cat-js        { background: rgba(255,220,50,.12);  color: #fde047; }
.cat-server    { background: rgba(16,185,129,.15);  color: var(--green); }
.cat-seo       { background: rgba(59,130,246,.15);  color: var(--accent); }
.cat-security  { background: rgba(239,68,68,.15);   color: #f87171; }
.cat-anfaenger { background: rgba(245,158,11,.15);  color: var(--orange); }
.cat-default   { background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   PROVIDER CARDS
═══════════════════════════════════════════════════════════════ */
.provider-card { display: flex; flex-direction: column; }
.provider-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.provider-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.provider-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.provider-tagline { font-size: .82rem; color: var(--muted); }
.provider-desc {
  font-size: .875rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
  font-weight: 300;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag.blue   { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.25); color: var(--accent); }
.tag.green  { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.25); color: var(--green); }
.tag.purple { background: rgba(139,92,246,.1);  border-color: rgba(139,92,246,.25); color: var(--accent3); }
.tag.orange { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.25); color: var(--orange); }
.rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--orange); margin-bottom: 16px; }
.rating span { color: var(--muted); }
.provider-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  padding: 9px 16px;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 8px;
  transition: all .2s;
  margin-top: auto;
}
.provider-link:hover {
  background: rgba(59,130,246,.1);
  border-color: var(--accent);
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPARISON TABLE
═══════════════════════════════════════════════════════════════ */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: .875rem;
}
.comparison-table th {
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  background: var(--bg3);
  border-bottom: 2px solid var(--border);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table tr:hover td { background: rgba(255,255,255,.02); }
.check { color: var(--green); }
.cross { color: #ef4444; }
.anbieter-name { font-weight: 600; color: var(--text); }
.price-cell { color: var(--accent); font-weight: 600; font-family: var(--font-head); }

/* ═══════════════════════════════════════════════════════════════
   PACKAGES / PRICING SECTION
═══════════════════════════════════════════════════════════════ */
.packages-section {
  background: linear-gradient(135deg, rgba(59,130,246,.07) 0%, rgba(139,92,246,.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.coming-soon-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .8rem;
  color: var(--orange);
  margin-bottom: 32px;
}
.pkg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s;
  position: relative;
}
.pkg-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(59,130,246,.08), var(--card));
}
.pkg-card.featured::after {
  content: 'Empfohlen';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
}
.pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.pkg-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.pkg-price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0;
}
.pkg-price sup { font-size: 1rem; vertical-align: super; }
.pkg-price sub { font-size: .85rem; color: var(--muted); font-weight: 300; }
.pkg-features { list-style: none; margin-bottom: 24px; }
.pkg-features li {
  font-size: .875rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.pkg-features li:last-child { border-bottom: none; }
.pkg-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.btn-pkg {
  width: 100%;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  transition: all .2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn-pkg.featured-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  box-shadow: 0 0 24px rgba(59,130,246,.3);
}

/* ═══════════════════════════════════════════════════════════════
   NEWS / BLOG CARDS
═══════════════════════════════════════════════════════════════ */
.news-card { display: flex; gap: 20px; }
.news-date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent);
  min-width: 52px;
  text-align: center;
  line-height: 1;
}
.news-day { font-size: 1.6rem; }
.news-title {
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  font-size: .95rem;
  color: var(--text);
  transition: color .2s;
}
a:hover .news-title { color: var(--accent); }
.news-excerpt { font-size: .83rem; color: var(--muted); font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
═══════════════════════════════════════════════════════════════ */
.newsletter-section { text-align: center; }
.newsletter-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 16px; }
.newsletter-input-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.newsletter-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGE LAYOUT
═══════════════════════════════════════════════════════════════ */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Article Header */
.article-header { margin-bottom: 40px; }
.article-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.article-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 4px 11px;
  border-radius: 100px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

/* Lead / Einleitungssatz */
.article-lead {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--muted);
}
.meta-item strong { color: var(--text); font-weight: 500; }
.meta-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}
.meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.difficulty-bar { display: flex; gap: 4px; align-items: center; }
.diff-pip { width: 22px; height: 5px; border-radius: 3px; background: var(--border); }
.diff-pip.on { background: var(--green); }

/* Hero image placeholder */
.article-hero-img {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #0d1117 0%, #161d2e 50%, #0f172a 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-hero-img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,.12), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(139,92,246,.1), transparent 60%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PROSE
═══════════════════════════════════════════════════════════════ */
.prose { color: var(--text); }
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 44px 0 14px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.prose h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  scroll-margin-top: 80px;
}
.prose p {
  margin-bottom: 18px;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.8;
}
.prose strong { font-weight: 600; color: var(--text); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(59,130,246,.3);
  transition: text-decoration-color .2s;
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li {
  margin-bottom: 7px;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.7;
}
.prose ul li::marker { color: var(--accent); }

/* Inline code */
.prose code {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--accent2);
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* Code blocks */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  margin: 24px 0;
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--code-border);
  gap: 10px;
}
.code-lang {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.code-filename {
  font-size: .78rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  flex: 1;
}
.code-copy {
  font-size: .75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--code-border);
  border-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.code-copy:hover { border-color: var(--accent); color: var(--accent); }
.code-copy.copied { border-color: var(--green); color: var(--green); }
.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  line-height: 1.75;
  tab-size: 4;
}

/* Syntax highlight */
.t-comment { color: #6a737d; font-style: italic; }
.t-kw      { color: #f97583; }
.t-fn      { color: #b392f0; }
.t-str     { color: #9ecbff; }
.t-var     { color: #e1e4e8; }
.t-num     { color: #f8cc75; }
.t-tag     { color: #85e89d; }
.t-attr    { color: #ffab70; }
.t-val     { color: #9ecbff; }
.t-op      { color: #f97583; }

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.5; }
.callout-body { flex: 1; }
.callout-body strong { display: block; font-weight: 600; margin-bottom: 4px; font-size: .9rem; }
.callout-body p { margin: 0; font-size: .875rem; font-weight: 300; }
.callout.info    { background: rgba(59,130,246,.07);  border-color: rgba(59,130,246,.25); }
.callout.info .callout-icon,  .callout.info strong  { color: var(--accent); }
.callout.warn    { background: rgba(245,158,11,.07);  border-color: rgba(245,158,11,.25); }
.callout.warn .callout-icon,  .callout.warn strong  { color: var(--orange); }
.callout.success { background: rgba(16,185,129,.07);  border-color: rgba(16,185,129,.25); }
.callout.success .callout-icon,.callout.success strong { color: var(--green); }
.callout.danger  { background: rgba(239,68,68,.07);   border-color: rgba(239,68,68,.25); }
.callout.danger .callout-icon, .callout.danger strong { color: #f87171; }

/* Steps */
.steps { margin: 24px 0; }
.step { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content h4 { font-family: var(--font-head); font-weight: 700; font-size: .98rem; margin-bottom: 6px; }
.step-content p  { font-size: .875rem; color: var(--muted); margin: 0; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE FOOTER
═══════════════════════════════════════════════════════════════ */
.article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.share-label { font-size: .85rem; color: var(--muted); font-weight: 400; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Author box */
.author-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 0;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  font-family: var(--font-head);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.author-bio  { font-size: .85rem; color: var(--muted); font-weight: 300; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOC Card */
.toc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.read-progress { margin-bottom: 20px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0;
  transition: width .2s;
}
.toc-title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  display: block;
  font-size: .83rem;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(59,130,246,.07); font-weight: 500; }
.toc-list .toc-h3 { padding-left: 22px; font-size: .78rem; }

/* Sidebar Cards */
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card-title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Related links */
.related-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { opacity: .8; }
.rl-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rl-title { font-size: .83rem; font-weight: 500; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.rl-meta  { font-size: .75rem; color: var(--muted); }

/* Tags sidebar */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sidebar-tag {
  font-size: .78rem;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid;
  text-decoration: none;
  transition: opacity .2s;
}
.sidebar-tag:hover { opacity: .75; }

/* Hosting promo */
.hosting-promo {
  background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(139,92,246,.1));
  border: 1px solid rgba(59,130,246,.25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.promo-icon { font-size: 2rem; margin-bottom: 12px; }
.hosting-promo h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.hosting-promo p { font-size: .85rem; color: var(--muted); margin-bottom: 16px; font-weight: 300; line-height: 1.6; }
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.promo-btn:hover { box-shadow: 0 0 20px rgba(59,130,246,.35); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE
═══════════════════════════════════════════════════════════════ */
.category-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 60px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.08), transparent 70%);
  pointer-events: none;
}
.category-hero-inner { position: relative; max-width: 600px; margin: 0 auto; }
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.category-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.category-desc { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.7; }
.category-count {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 16px;
}

.category-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5% 80px;
}

/* Post grid for category */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-numbers.prev,
.page-numbers.next { width: auto; padding: 0 16px; gap: 6px; }

/* ═══════════════════════════════════════════════════════════════
   404 ERROR PAGE
═══════════════════════════════════════════════════════════════ */
.error-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,68,68,.1), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.error-code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, rgba(239,68,68,.6), rgba(245,158,11,.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.error-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.error-desc { color: var(--muted); font-weight: 300; font-size: 1rem; max-width: 420px; margin: 0 auto 36px; line-height: 1.7; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-suggestions {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.error-suggestions h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
}
.error-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}
.error-links li a:hover { border-color: var(--accent); color: var(--accent); background: var(--card-hover); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 5% 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 260px;
  font-weight: 300;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════════════════════ */
.search-form {
  display: flex;
  gap: 8px;
}
.search-field {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}
.search-field:focus { border-color: var(--accent); }
.search-field::placeholder { color: var(--muted); }
.search-submit {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .875rem;
  transition: all .2s;
  font-family: var(--font-body);
}
.search-submit:hover { background: var(--accent2); }

/* ═══════════════════════════════════════════════════════════════
   WORDPRESS DEFAULTS OVERRIDES
═══════════════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; margin: 24px auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute;
}

/* WP Gutenberg prose inside .prose */
.prose .wp-block-heading { scroll-margin-top: 80px; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--muted);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .875rem; }
.prose table th { background: var(--bg3); padding: 10px 14px; border: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; text-align: left; }
.prose table td { padding: 10px 14px; border: 1px solid var(--border); }
.prose table tr:hover td { background: rgba(255,255,255,.02); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .toc-card { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 4%; }
  .main-navigation { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }

  .page-layout { padding: 32px 4% 60px; }
  .category-layout { padding: 32px 4% 60px; }
  .site-section { padding: 60px 4%; }

  .sidebar {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-input-row { flex-direction: column; }
  .newsletter-box { padding: 32px 24px; }
  .hero-stats { gap: 24px; }
  .article-meta { gap: 12px; }

  .error-code { font-size: clamp(5rem, 25vw, 8rem); }
}

@media (max-width: 400px) {
  .share-row { gap: 7px; }
  .share-btn { padding: 6px 10px; font-size: .75rem; }
}
