/* Style preset ID 2 — Dark Tech / Cyberpunk
   Structure preset ID 11 — Tabbed Category Portal */
:root {
  --bg: #0a0c10;
  --surface: #161b22;
  --text: #e6edf3;
  --accent: #2f81f7;
  --border: #30363d;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --font-h: 'Consolas', 'Courier New', monospace;
  --font-b: 'Inter', 'Segoe UI', sans-serif;
  --muted: #8b949e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(47,129,247,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(47,129,247,0.08) 0%, transparent 40%);
}

a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #58a6ff; }
img, svg { max-width: 100%; display: block; }

.advertorial {
  background: #0d1117;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}
.advertorial strong { color: var(--accent); font-family: var(--font-h); }

/* Header — Logo left + Category Tabs */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
}
.logo {
  font-family: var(--font-h);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  width: 180px;
}
.search-mini:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0.85rem;
  border-top: 1px solid transparent;
}
.tab-btn {
  font-family: var(--font-h);
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 12px rgba(47,129,247,0.25);
}
.tab-btn.active {
  background: rgba(47,129,247,0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(47,129,247,0.35);
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .search-mini { width: 120px; }
}

/* Hero featured */
.featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: border-color .25s, box-shadow .25s;
}
.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(47,129,247,0.3);
}
.featured-cover { position: relative; overflow: hidden; }
.featured-cover .cover-svg { width: 100%; height: auto; min-height: 220px; }
.featured-body { padding: 1.5rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-h);
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-block;
  background: rgba(47,129,247,0.12);
  color: var(--accent);
  border: 1px solid rgba(47,129,247,0.35);
  border-radius: var(--radius);
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-h);
}
h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.featured h2 { font-size: 1.65rem; }
.featured p.excerpt { color: var(--muted); margin: 0 0 1rem; }
.btn-accent, .btn-read {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-h);
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-accent:hover, .btn-read:hover {
  background: #58a6ff;
  box-shadow: 0 0 18px rgba(47,129,247,0.45);
  transform: translateY(-1px);
}

/* Feed cards */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 640px) { .feed-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  cursor: pointer;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(47,129,247,0.28);
  transform: translateY(-2px);
}
.card.hidden-by-tab { display: none; }
.card-cover .cover-svg { height: 140px; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { font-size: 1.05rem; }
.card-body .excerpt { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.75rem; }

/* Inline article reader */
#article-reader {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  animation: fadeSlide .35s ease;
}
#article-reader.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#article-reader .reader-close {
  float: right;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-h);
}
#article-reader .reader-close:hover { border-color: var(--accent); color: var(--accent); }
#article-reader .cover-svg { border-radius: var(--radius); margin: 1rem 0 1.25rem; }
#article-reader .article-content h3 { color: var(--accent); margin-top: 1.5rem; }
#article-reader .article-content ul { padding-left: 1.25rem; }
#article-reader .article-content li { margin-bottom: 0.4rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.side-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}
.author-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a3a5c, var(--accent));
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.author-item strong { display: block; font-size: 0.9rem; }
.author-item span { font-size: 0.75rem; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud .tag { cursor: default; }
.subscribe-form { display: flex; flex-direction: column; gap: 0.5rem; }
.subscribe-form input, .contact-form input, .contact-form textarea, .comment-form input, .comment-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-b);
  font-size: 0.9rem;
}
.subscribe-form input:focus, .contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
}
.form-msg { font-size: 0.85rem; color: var(--accent); min-height: 1.2em; }

/* Legal pages */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.page-wrap.wide { max-width: 1000px; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.legal-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.legal-card h2 { font-size: 1.15rem; color: var(--accent); margin-top: 1.75rem; }
.legal-card p, .legal-card li { color: #c9d1d9; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

/* Contacts map */
.map-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1117;
}
.map-svg { width: 100%; height: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 0.65rem; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-family: var(--font-h); font-size: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0d1117;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-legal-entity h4, .footer-links h4 {
  font-family: var(--font-h);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-brand p, .footer-legal-entity p { font-size: 0.88rem; color: var(--muted); margin: 0.25rem 0; }
.footer-disclaimer {
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
}
.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-h);
  margin: 1rem 0 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 800px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-family: var(--font-h);
  cursor: pointer;
}
.btn-reject:hover { border-color: var(--accent); color: var(--accent); }

.health-notice {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(47, 129, 247, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.health-notice p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.operator-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.search-results {
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-h);
}
.post-page .article-hero { margin-bottom: 1.5rem; }
