/* CyberPro Hub — Seasoned Practitioner Styles */

:root {
  --bg: #0a0e17;
  --bg-alt: #0f1520;
  --surface: #141b2a;
  --surface-hover: #1a2335;
  --border: #1e2a3d;
  --border-light: #2a3a52;
  --text: #e8eef7;
  --text-muted: #8b9cb3;
  --text-dim: #5c6d85;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #e8eef6;
  --surface: #ffffff;
  --surface-hover: #f0f5fc;
  --border: #d0dbea;
  --border-light: #b8c7db;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

*, *::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);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo .accent {
  color: var(--accent-bright);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.main-nav a:hover {
  color: var(--accent-bright);
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.theme-toggle:hover {
  background: var(--surface-hover);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-family: var(--mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.card.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface)));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-icon {
  font-size: 1.5rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-glow);
  color: var(--accent-bright);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 0.85rem;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bright);
}

/* Two column lists */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 1rem;
  color: var(--text);
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.link-list a:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.link-list strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.link-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Experts */
.experts-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.expert-card {
  text-align: center;
}

.expert-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  font-family: var(--mono);
}

.expert-role {
  font-size: 0.75rem !important;
  color: var(--accent-bright) !important;
  font-weight: 500;
  margin-bottom: 0.4rem !important;
}

.expert-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: auto;
}

.expert-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
}

.expert-links a:hover {
  text-decoration: underline;
}

/* Podcasts */
.podcast-grid .meta {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  font-family: var(--mono);
  margin-bottom: 0.4rem !important;
}

.pocket-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* X Accounts */
.account-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.account-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
}

.account-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  text-align: center;
  padding-bottom: 5rem;
}

.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 750;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1rem;
}

.disclaimer {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  margin-top: 0.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
