
/* ============================================================
   ADMIN BAR OFFSET
   WordPress correctly adds margin-top:32px to body when admin
   bar is visible. We just need to offset our sticky nav.
   ============================================================ */
body.admin-bar #site-header {
  top: 32px;
}
body.admin-bar #mobile-bottom-nav {
  /* no change needed — bottom nav isn't affected by admin bar */
}
@media (max-width: 782px) {
  body.admin-bar #site-header { top: 46px; }
}

/*
Theme Name: CyberPopPop
Theme URI: https://cyberpoppop.com
Author: CyberPopPop
Description: A modern, clean cybersecurity and tech news blog built for everyday folks AND power users. Featuring live news feeds, threat alerts, tool directory, beginner guides, and a glossary.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: cybersecurity, tech, news, blog, rss, responsive, two-columns
Text Domain: cyberpoppop
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:       #1e3a5f;
  --primary-light: #2d5086;
  --secondary:     #0070f3;
  --accent:        #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --bg:            #f1f5f9;
  --surface:       #ffffff;
  --surface-alt:   #f8fafc;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow:        0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 24px rgba(0,0,0,.12);
  --radius:        8px;
  --radius-lg:     12px;
  --font:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width:     1200px;
  --transition:    all .2s ease;
}

/* ============================================================
   FULL-WIDTH LAYOUT FIX
   Forces all top-level elements to span the browser window.
   Overrides any WordPress or plugin wrapper constraints.
   ============================================================ */
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
}

/* Every direct full-bleed element must span full width */
#site-masthead,
#site-header,
#threat-ticker,
#site-search-bar,
#news-feed,
#guides,
#threat-alerts,
#tools,
#glossary,
.newsletter-bar,
.quick-tips-bar,
#site-footer,
#mobile-bottom-nav,
main,
.section,
.section-alt {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Container is the only thing with a max-width — centered within the full-width parent */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ============================================================
   WORDPRESS / BLUEHOST PLUGIN OVERRIDES
   Neutralise any third-party wrapper constraints.
   ============================================================ */

/* WordPress core wrappers */
.wp-site-blocks,
.site,
#page,
.site-content,
#content,
.site-inner,
.content-area,
#primary,
.hentry,
.entry-content,
.post-content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* Bluehost / plugin common wrappers */
.bluehost-container,
.elementor-section-boxed > .elementor-container,
.wp-block-group__inner-container,
.wp-block-cover__inner-container {
  max-width: 100% !important;
}

/* Ensure admin bar doesn't push layout sideways */
body.admin-bar #site-masthead,
body.admin-bar #site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}




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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section {
  padding: 40px 0;
}
.section-alt {
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.section-title .icon.accent  { background: var(--accent); }
.section-title .icon.danger  { background: var(--danger); }
.section-title .icon.warning { background: var(--warning); }
.section-title .icon.primary { background: var(--primary); }

.view-all {
  font-size: .875rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all:hover { color: var(--primary); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body   { padding: 20px; flex: 1; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); }

.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--secondary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card-tag.danger  { background: var(--danger); }
.card-tag.accent  { background: var(--accent); }
.card-tag.primary { background: var(--primary); }
.card-tag.warning { background: var(--warning); color: #1e293b; }

.card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--primary);
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--secondary); }

.card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 56px;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.site-logo .site-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.site-logo .site-name span { color: var(--accent); }

/* Nav */
#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#primary-navigation ul li a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Header search */
.header-search {
  position: relative;
  flex-shrink: 0;
}
.header-search input {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 8px 36px 8px 14px;
  border-radius: 20px;
  font-size: .85rem;
  width: 200px;
  transition: var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
  width: 260px;
}
.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 14px;
}

/* hamburger removed — mobile uses bottom nav */

/* ============================================================
   TICKER / BREAKING NEWS BAR
   ============================================================ */
#threat-ticker {
  background: var(--danger);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}
.ticker-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0,0,0,.25);
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 18s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  font-size: .85rem;
  font-weight: 500;
}
.ticker-item a { color: #fff; }
.ticker-item a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* hero section removed */

/* ============================================================
   NEWS FEED SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--secondary);
}
.news-card-body { padding: 18px; flex: 1; }
.news-card-source {
  font-size: .72rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.news-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--secondary); }
.news-card-excerpt {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.news-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-card-footer a {
  color: var(--secondary);
  font-weight: 600;
  font-size: .78rem;
}

/* Feed loading state */
.feed-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: .9rem;
}
.feed-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--danger);
  font-size: .9rem;
}

/* ============================================================
   THREAT ALERTS
   ============================================================ */
.threat-alerts-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.threat-level-indicator {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.threat-level-bar {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.threat-level-bar span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}
.threat-level-bar span.active-low    { background: var(--accent); }
.threat-level-bar span.active-medium { background: var(--warning); }
.threat-level-bar span.active-high   { background: #f97316; }
.threat-level-bar span.active-critical { background: var(--danger); }

.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.alert-item:hover { box-shadow: var(--shadow-md); }
.alert-item.medium { border-left-color: var(--warning); }
.alert-item.low    { border-left-color: var(--accent); }
.alert-item-title  { font-size: .9rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.alert-item-title a { color: inherit; }
.alert-item-title a:hover { color: var(--secondary); }
.alert-item-meta { font-size: .75rem; color: var(--text-muted); }

.severity-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}
.severity-badge.critical { background: #fee2e2; color: var(--danger); }
.severity-badge.high     { background: #fff7ed; color: #f97316; }
.severity-badge.medium   { background: #fffbeb; color: var(--warning); }
.severity-badge.low      { background: #f0fdf4; color: var(--accent); }

/* ============================================================
   BEGINNER GUIDES
   ============================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.guide-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #059669);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.guide-difficulty {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
}
.guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.guide-title a { color: inherit; }
.guide-title a:hover { color: var(--secondary); }
.guide-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.guide-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.guide-cta:hover { gap: 8px; }

/* ============================================================
   TOOL DIRECTORY
   ============================================================ */
.tools-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tool-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: var(--transition);
}
.tool-tab.active,
.tool-tab:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.tool-logo {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.tool-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
}
.tool-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.tool-badges {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.tool-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f0fdf4;
  color: var(--accent);
  border: 1px solid #bbf7d0;
}
.tool-badge.free     { background: #f0fdf4; color: var(--accent); border-color: #bbf7d0; }
.tool-badge.freemium { background: #eff6ff; color: var(--secondary); border-color: #bfdbfe; }
.tool-badge.paid     { background: #fff7ed; color: #f97316; border-color: #fed7aa; }
.tool-visit {
  font-size: .8rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 6px 16px;
  border: 1px solid var(--secondary);
  border-radius: 6px;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}
.tool-visit:hover {
  background: var(--secondary);
  color: #fff;
}

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.glossary-search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
}
.glossary-search-bar input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,112,243,.1);
}

.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
}
.alpha-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glossary-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.glossary-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}
.glossary-term {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.glossary-term a { color: inherit; }
.glossary-def {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.glossary-abbr {
  font-size: .72rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.widget-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--primary);
}
.widget-body { padding: 16px 18px; }
.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.widget-list li:last-child { border-bottom: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .site-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: block;
}
.footer-brand .site-name span { color: var(--accent); }
.footer-brand p {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--secondary);
  color: #fff;
}
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a, .pagination .current {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.pagination .current {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.pagination a:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  background: var(--surface);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.single-post-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
.single-post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: .875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.post-content {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 720px;
}
.post-content h2,h3,h4 { margin: 2rem 0 1rem; color: var(--primary); }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content code {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
}
.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-result-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.search-result-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.search-result-item h3 a { color: var(--primary); }
.search-result-item h3 a:hover { color: var(--secondary); }

/* ============================================================
   NEWSLETTER BAR
   ============================================================ */
.newsletter-bar {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  padding: 48px 0;
  color: #fff;
  text-align: center;
}
.newsletter-bar h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.newsletter-bar p {
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .95rem;
  font-family: var(--font);
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: #059669; }

/* ============================================================
   TOOL/GLOSSARY SINGLE
   ============================================================ */
.tool-single-hero {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.tool-single-logo {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --max-width: 100%; }

  .grid-4, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid           { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 28px; }
  .threat-alerts-wrapper { grid-template-columns: 1fr; }
  .news-grid           { grid-template-columns: repeat(2, 1fr); }
  .guides-grid         { grid-template-columns: repeat(2, 1fr); }

  #site-masthead       { padding: 16px 20px; gap: 16px; }
  #masthead-logo       { height: 130px; }
  #masthead-tagline h2 { font-size: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ── Masthead ── */
  #site-masthead {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }
  #masthead-logo { height: 80px; }
  #masthead-tagline h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  #masthead-tagline p  { font-size: .9rem; }

  /* ── Nav bar ── */
  #site-header .header-inner { padding: 0 14px; height: 52px; }
  .header-search { display: none; }
  #primary-navigation { display: none !important; }
  /* mobile nav open state removed — bottom nav used instead */



  /* ── Ticker ── */
  .ticker-label { display: none; }
  #threat-ticker { padding: 6px 0; }
  .ticker-item { font-size: .8rem; }

  /* ── Hero ── */
  #hero { padding: 20px 0; }
  .hero-inner { max-width: 100%; }
  #hero h1 { font-size: 1.6rem; line-height: 1.2; }
  #hero p   { font-size: .95rem; }
  .hero-badge { font-size: .7rem; }
  .hero-search { flex-direction: column; gap: 8px; max-width: 100%; }
  .hero-search input  { border-radius: var(--radius); padding: 12px 16px; }
  .hero-search button { border-radius: var(--radius); padding: 12px 16px; }
  .hero-stats { display: none; }

  /* ── Section headers ── */
  .section { padding: 24px 0; }
  .section-header { flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .section-title { font-size: 1.3rem; }

  /* ── News / feed grids ── */
  .news-grid  { grid-template-columns: 1fr; gap: 14px; }
  .guides-grid { grid-template-columns: 1fr; gap: 14px; }
  .grid-3      { grid-template-columns: 1fr; gap: 14px; }
  .glossary-grid { grid-template-columns: 1fr; }

  /* ── Feed tabs ── */
  .feed-tabs { gap: 6px; }
  .tool-tab  { padding: 7px 12px; font-size: .8rem; }

  /* ── Tools ── */
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tools-tabs { gap: 6px; }
  .tool-card  { padding: 14px; }
  .tool-logo  { width: 44px; height: 44px; font-size: 22px; }
  .tool-name  { font-size: .85rem; }
  .tool-desc  { font-size: .75rem; }

  /* ── Quick tips bar ── */
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tip-item .tip-icon { font-size: 1.6rem; margin-bottom: 8px; }
  .tip-item h4 { font-size: .85rem; }
  .tip-item p  { font-size: .75rem; }

  /* ── Guide cards ── */
  .guide-card { padding: 18px; }
  .guide-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }

  /* ── Glossary ── */
  .glossary-alpha-nav { gap: 3px; }
  .alpha-btn { width: 28px; height: 28px; font-size: .75rem; }
  .glossary-search-bar { flex-direction: column; }

  /* ── Threat alerts ── */
  .threat-alerts-wrapper { grid-template-columns: 1fr; }
  .alert-item { padding: 12px 14px; }
  .alert-item-title { font-size: .85rem; }

  /* ── Sidebar ── */
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  /* ── Newsletter bar ── */
  .newsletter-bar { padding: 32px 0; }
  .newsletter-bar h2 { font-size: 1.3rem; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .newsletter-form input  { border-radius: var(--radius); }
  .newsletter-form button { border-radius: var(--radius); }

  /* ── Footer ── */
  #site-footer { padding: 40px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-logo-img { height: 80px; }
  .footer-social { justify-content: center; }
  .footer-col ul li { text-align: center; }
  .footer-bottom { font-size: .75rem; padding: 16px; }

  /* ── Skeleton cards ── */
  .skeleton-card { min-height: 150px; }

  /* ── Single post ── */
  .single-post-title { font-size: 1.5rem; }
  .single-post-meta  { flex-wrap: wrap; gap: 8px; font-size: .8rem; }
  .post-content      { font-size: .95rem; }

  /* ── Tool single ── */
  .tool-single-hero { flex-direction: column; padding: 20px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --radius: 6px; --radius-lg: 10px; }

  .container { padding: 0 14px; }

  /* Single column everything */
  .grid-2, .grid-4, .tools-grid, .tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Masthead */
  #masthead-logo { height: 70px; }
  #masthead-tagline h2 { font-size: 1.15rem; }

  /* Hero */
  #hero h1 { font-size: 1.4rem; }
  #hero    { padding: 28px 0; }

  .menu-toggle-wrap { display: flex; }

  /* Tabs — make scrollable row */
  .feed-tabs, .tools-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .feed-tabs::-webkit-scrollbar,
  .tools-tabs::-webkit-scrollbar { display: none; }
  .tool-tab { white-space: nowrap; flex-shrink: 0; }

  /* Cards */
  .news-card-title { font-size: .9rem; }
  .news-card-excerpt { display: none; } /* hide excerpt on tiny screens */

  .guide-card { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .guide-icon { flex-shrink: 0; }

  /* Alert list */
  .severity-badge { display: none; }

  /* Section */
  .section { padding: 28px 0; }

  /* Glossary alpha nav — scroll horizontal */
  .glossary-alpha-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .glossary-alpha-nav::-webkit-scrollbar { display: none; }
  .alpha-btn { flex-shrink: 0; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-col { display: none; } /* hide footer nav cols on tiny screens */
  .footer-brand { display: block; }
}

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 0 16px rgba(0, 200, 255, .3), 0 0 32px rgba(140, 0, 255, .2);
  transition: box-shadow .3s ease;
}

.footer-logo-link:hover .footer-logo-img {
  box-shadow: 0 0 24px rgba(0, 200, 255, .55), 0 0 48px rgba(140, 0, 255, .3);
}

/* ============================================================
   MASTHEAD BANNER (large logo above nav)
   ============================================================ */
#site-masthead {
  background: #0a0e1a;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  border-bottom: 3px solid var(--secondary);
}

#site-masthead a {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

#masthead-logo {
  height: 120px;
  width: auto;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(0, 200, 255, .5),
    0 0 50px rgba(130, 0, 255, .3),
    0 4px 24px rgba(0,0,0,.6);
  transition: box-shadow .35s ease, transform .25s ease;
}

#masthead-logo:hover {
  box-shadow:
    0 0 32px rgba(0, 200, 255, .75),
    0 0 70px rgba(130, 0, 255, .45),
    0 6px 32px rgba(0,0,0,.7);
  transform: scale(1.02);
}

#masthead-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#masthead-tagline h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(0, 200, 255, .4);
}

#masthead-tagline h2 em {
  font-style: normal;
  color: var(--accent);
}

#masthead-tagline p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  font-style: italic;
  letter-spacing: .02em;
  max-width: 480px;
  line-height: 1.5;
}

/* Nav bar slimmer since logo is in masthead */
#site-header .header-inner {
  height: 52px;
}

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 0 16px rgba(0, 200, 255, .3), 0 0 32px rgba(140, 0, 255, .2);
  transition: box-shadow .3s ease;
}

.footer-logo-link:hover .footer-logo-img {
  box-shadow: 0 0 24px rgba(0, 200, 255, .55), 0 0 48px rgba(140, 0, 255, .3);
}

/* mobile masthead handled in main @media blocks above */

/* ============================================================
   SKELETON LOADERS — card-shaped placeholders while feeds load
   ============================================================ */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* A full fake news card */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-card-body { padding: 18px; flex: 1; }
.skeleton-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sk-source { height: 10px; width: 80px;  margin-bottom: 12px; }
.sk-title1 { height: 14px; width: 100%;  margin-bottom: 8px;  }
.sk-title2 { height: 14px; width: 75%;   margin-bottom: 16px; }
.sk-line1  { height: 10px; width: 100%;  margin-bottom: 6px;  }
.sk-line2  { height: 10px; width: 85%;   margin-bottom: 6px;  }
.sk-line3  { height: 10px; width: 60%;   }
.sk-date   { height: 10px; width: 70px;  }
.sk-read   { height: 10px; width: 40px;  }



/* ============================================================
   MOBILE SITE NAME (shown in nav bar on small screens)
   ============================================================ */
.mobile-site-name {
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  flex: 1;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-site-name { display: block; }

  /* Ensure header inner lays out: [logo] [site-name] [menu-wrap] */
  .header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Shrink logo in nav bar on mobile — big version is in masthead */
  .site-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
}

/* ============================================================
   MOBILE BOTTOM NAV BAR
   Harmonizes with desktop nav: same primary bg, same hover/active
   states, same font weight — just rotated to horizontal icon+label
   ============================================================ */
#mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {

  /* Hide the desktop sticky nav bar entirely */
  #site-header { display: none; }

  /* Pad page bottom so content clears the nav bar */
  body { padding-bottom: 66px; }

  /* Bottom nav bar */
  #mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--primary);          /* same as desktop nav */
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 -2px 16px rgba(0,0,0,.35);
    height: 62px;
    align-items: stretch;
    -webkit-tap-highlight-color: transparent;
    /* safe area for iPhone notch */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  #mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,.7);         /* same muted white as desktop */
    text-decoration: none;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 8px 2px;
    transition: color .15s, background .15s;
    position: relative;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  #mobile-bottom-nav a:last-child { border-right: none; }

  /* Hover / tap — same style as desktop nav hover */
  #mobile-bottom-nav a:hover,
  #mobile-bottom-nav a:active {
    background: rgba(255,255,255,.12);   /* desktop uses same value */
    color: #fff;
  }

  /* Active / current page */
  #mobile-bottom-nav a.current {
    color: #fff;
    background: rgba(255,255,255,.1);
  }

  /* Accent bar at top of active item — mirrors desktop underline feel */
  #mobile-bottom-nav a.current::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
  }

  /* Icons */
  #mobile-bottom-nav .nav-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: block;
  }

  /* Alerts gets a red tint to draw attention — matches alert badges */
  #mobile-bottom-nav a.nav-alerts         { color: rgba(255,160,160,.8); }
  #mobile-bottom-nav a.nav-alerts:hover,
  #mobile-bottom-nav a.nav-alerts.current { color: #ff9090; }
}

/* Very small phones: drop text, keep icons only */
@media (max-width: 360px) {
  #mobile-bottom-nav            { height: 54px; }
  #mobile-bottom-nav a span:not(.nav-icon) { display: none; }
  #mobile-bottom-nav .nav-icon  { font-size: 1.35rem; }
  body                          { padding-bottom: 54px; }
}


/* ============================================================
   SOURCE CARDS — news source directory
   ============================================================ */
.source-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.source-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.source-icon {
  font-size: 2rem;
  line-height: 1;
}
.source-body { flex: 1; }
.source-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--secondary);
  margin-bottom: 6px;
}
.source-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px;
}
.source-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.source-visit {
  display: block;
  text-align: center;
  padding: 9px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
}
.source-visit:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* ============================================================
   FEATURE BOXES — homepage navigation cards
   ============================================================ */
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-box--cyber:hover  { border-color: var(--danger); }
.feature-box--alerts:hover { border-color: var(--danger); }
.feature-box--guides:hover { border-color: var(--accent); }
.feature-box--tools:hover  { border-color: var(--secondary); }

.feature-box__icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-box__title {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 6px;
}
.feature-box__desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.feature-box__cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--secondary);
}

@media (max-width: 600px) {
  .feature-box { flex-direction: column; gap: 10px; }
  .feature-box__icon { font-size: 1.8rem; }
}
