/* ==========================================================================
   Spacewebe Theme — Main Stylesheet
   Dark glassmorphism • Neon Blue/Violet • Nunito font
   ========================================================================== */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sw-bg:           #050811;
  --sw-bg-alt:       #030509;
  --sw-bg-card:      rgba(255,255,255,0.04);
  --sw-border:       rgba(255,255,255,0.08);
  --sw-border-light: rgba(255,255,255,0.05);
  --sw-text:         #f2f2f5;
  --sw-text-muted:   #71717a;
  --sw-text-sub:     #a1a1aa;
  --sw-blue:         #3b82f6;
  --sw-violet:       #7c3aed;
  --sw-violet-light: #8b5cf6;
  --sw-indigo:       #6366f1;
  --sw-cyan:         #22d3ee;
  --sw-green:        #4ade80;
  --sw-gradient-main: linear-gradient(135deg, #3b82f6, #7c3aed);
  --sw-gradient-card: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(124,58,237,0.15));
  --sw-blur:         blur(20px);
  --sw-radius:       0.75rem;
  --sw-radius-lg:    1.25rem;
  --sw-radius-xl:    1.75rem;
  --sw-shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --sw-shadow-glow:  0 0 60px rgba(124,58,237,0.25);
  --sw-font:         'Nunito', sans-serif;
  --sw-nav-height:   64px;
  --sw-max-width:    1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sw-font);
  background-color: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout Helpers ────────────────────────────────────────────────────── */
.sw-container {
  max-width: var(--sw-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.sw-section { padding: 5rem 0; }
.sw-section-dark { background: var(--sw-bg-alt); }
.sw-text-center { text-align: center; }
.sw-site-wrap { padding-top: var(--sw-nav-height); }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.sw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sw-nav-height);
  z-index: 1000;
  background: rgba(5,8,17,0.75);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.sw-nav.sw-nav-scrolled { background: rgba(5,8,17,0.92); }
.sw-nav-inner {
  max-width: var(--sw-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.sw-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  user-select: none;
  text-decoration: none;
}
.sw-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.sw-logo-text {
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.sw-logo img { height: 2rem; width: auto; }

.sw-ai-badge {
  display: none;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}
@media (min-width: 768px) { .sw-ai-badge { display: inline-flex; align-items: center; } }

/* Nav links */
.sw-nav-links { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .sw-nav-links { display: flex; } }
.sw-nav-link {
  color: #a1a1aa;
  font-weight: 700;
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
}
.sw-nav-link:hover, .sw-nav-link.current-menu-item { color: #fff; }

/* Nav CTA */
.sw-nav-cta { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .sw-nav-cta { display: flex; } }

/* Mobile toggle */
.sw-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  padding: 0.5rem;
  transition: color 0.2s;
}
.sw-nav-toggle:hover { color: #fff; }
.sw-nav-toggle .sw-close { display: none; }
@media (min-width: 768px) { .sw-nav-toggle { display: none; } }

/* Mobile menu */
.sw-mobile-menu {
  position: fixed;
  inset: var(--sw-nav-height) 0 0 0;
  z-index: 999;
  background: rgba(5,8,17,0.97);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.sw-mobile-menu.sw-open {
  transform: translateY(0);
  pointer-events: all;
}
.sw-mobile-menu.sw-open ~ .sw-nav .sw-hamburger { display: none; }
.sw-mobile-menu.sw-open ~ .sw-nav .sw-close { display: block; }
.sw-mobile-link {
  color: #e4e4e7;
  font-weight: 900;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.sw-mobile-link:hover { color: #fff; }
.sw-mobile-link.sw-text-danger { color: #f87171; }
.sw-mobile-cta {
  background: var(--sw-gradient-main);
  color: #fff;
  font-weight: 900;
  text-align: center;
  padding: 1rem;
  border-radius: var(--sw-radius-lg);
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sw-mobile-cta:hover { opacity: 0.9; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.sw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sw-gradient-main);
  color: #fff;
  font-weight: 900;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--sw-radius);
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.sw-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.sw-btn-primary.sw-btn-lg { font-size: 1rem; padding: 0.875rem 2rem; border-radius: var(--sw-radius-lg); }

.sw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--sw-radius);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.sw-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.sw-btn-outline.sw-btn-lg { font-size: 1rem; padding: 0.875rem 2rem; border-radius: var(--sw-radius-lg); }

.sw-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--sw-radius);
  text-decoration: none;
  transition: color 0.2s;
}
.sw-btn-ghost:hover { color: #fff; }
.sw-btn-ghost.sw-text-muted { color: #71717a; }
.sw-btn-ghost.sw-btn-lg { font-size: 1rem; padding: 0.875rem 1.5rem; border-radius: var(--sw-radius-lg); }

/* ── Badges & Pills ─────────────────────────────────────────────────────── */
.sw-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.sw-badge-blue  { color: #60a5fa; background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.25);  }
.sw-badge-violet{ color: #a78bfa; background: rgba(124,58,237,0.12);  border: 1px solid rgba(124,58,237,0.25);  }
.sw-badge-indigo{ color: #818cf8; background: rgba(99,102,241,0.12);  border: 1px solid rgba(99,102,241,0.25);  }

.sw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.375rem;
}
.sw-badge-ai     { color: #7c3aed; background: rgba(124,58,237,0.15); }
.sw-badge-coding { color: #22d3ee; background: rgba(34,211,238,0.12); }
.sw-badge-social { color: #f59e0b; background: rgba(245,158,11,0.12); }
.sw-badge-new    { color: #4ade80; background: rgba(74,222,128,0.12); }

.sw-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
}
.sw-tag-violet { color: #a78bfa; background: rgba(124,58,237,0.15); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.sw-hero {
  position: relative;
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
}
.sw-hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.sw-display-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.sw-hero-title  { font-size: clamp(1.75rem, 4vw, 3rem);  font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin-bottom: 1rem; }
.sw-hero-sub    { font-size: 1.0625rem; color: var(--sw-text-sub); max-width: 680px; margin: 0 auto 2.5rem; font-weight: 600; line-height: 1.7; }

.sw-gradient-text-blue   { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sw-gradient-text-violet { background: linear-gradient(135deg, #a78bfa, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Search */
.sw-search-form {
  position: relative;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sw-radius-xl);
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sw-search-form:focus-within {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.sw-search-icon { color: var(--sw-text-muted); flex-shrink: 0; display: flex; }
.sw-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--sw-font);
  font-size: 0.9375rem;
  font-weight: 600;
}
.sw-search-input::placeholder { color: var(--sw-text-muted); }
.sw-search-btn {
  background: var(--sw-gradient-main);
  color: #fff;
  font-weight: 900;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--sw-radius-lg);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.sw-search-btn:hover { opacity: 0.9; }

/* Pills row */
.sw-pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.sw-pill {
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sw-text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.sw-pill:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.sw-pill.sw-pill-active { color: #a78bfa; background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.3); }

/* Social proof */
.sw-social-proof { display: flex; align-items: center; justify-content: center; gap: 0.625rem; color: var(--sw-text-muted); font-size: 0.875rem; font-weight: 600; }
.sw-avatars { display: flex; }
.sw-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--sw-gradient-main);
  border: 2px solid var(--sw-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 900; color: #fff;
  margin-left: -0.5rem;
}
.sw-avatar:first-child { margin-left: 0; }
.sw-stars { color: #f59e0b; font-size: 0.875rem; }

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.sw-stats-bar { padding: 2.5rem 0; background: var(--sw-bg-alt); border-top: 1px solid var(--sw-border-light); border-bottom: 1px solid var(--sw-border-light); }
.sw-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.sw-stat-card {
  padding: 1.25rem;
  border-radius: var(--sw-radius-lg);
  text-align: center;
  border: 1px solid var(--sw-border);
  background: var(--sw-bg-card);
  transition: transform 0.2s;
}
.sw-stat-card:hover { transform: translateY(-2px); }
.sw-stat-value { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 0.25rem; }
.sw-stat-label { font-size: 0.6875rem; font-weight: 900; letter-spacing: 0.12em; color: var(--sw-text-muted); }
.sw-gradient-violet .sw-stat-value { background: linear-gradient(135deg, #a78bfa, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sw-gradient-blue   .sw-stat-value { background: linear-gradient(135deg, #60a5fa, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sw-gradient-cyan   .sw-stat-value { background: linear-gradient(135deg, #22d3ee, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Section header ─────────────────────────────────────────────────────── */
.sw-section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .sw-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.sw-section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.sw-section-sub { color: var(--sw-text-sub); font-size: 0.9375rem; font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.sw-cards-grid { display: grid; gap: 1.25rem; }
.sw-col-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sw-col-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sw-posts-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.sw-card {
  position: relative;
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.sw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,58,237,0.07), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.sw-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14); box-shadow: var(--sw-shadow-card); }
.sw-card:hover::before { opacity: 1; }

.sw-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem; flex-wrap: wrap; }
.sw-card-title { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 0.625rem; }
.sw-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.sw-card-title a:hover { color: #a78bfa; }
.sw-card-desc { color: var(--sw-text-muted); font-size: 0.875rem; font-weight: 600; line-height: 1.6; margin-bottom: 1rem; }
.sw-card-excerpt { color: var(--sw-text-sub); font-size: 0.875rem; font-weight: 600; line-height: 1.6; margin-bottom: 1.25rem; }

.sw-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.sw-card-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sw-card-badge { position: absolute; top: 0.75rem; right: 0.75rem; }

/* Pricing */
.sw-card-price { font-size: 0.875rem; font-weight: 900; padding: 0.25rem 0.75rem; border-radius: 0.5rem; }
.sw-card-price.sw-paid { color: #60a5fa; background: rgba(59,130,246,0.12); }
.sw-card-price.sw-free { color: #4ade80; background: rgba(74,222,128,0.12); }
.sw-price-tag { font-size: 1rem; font-weight: 900; color: #a78bfa; }

/* Model badge */
.sw-model-badge { font-size: 0.6875rem; font-weight: 700; color: var(--sw-text-muted); background: rgba(255,255,255,0.06); padding: 0.125rem 0.5rem; border-radius: 0.375rem; }
.sw-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; color: #f59e0b; }
.sw-uses { font-size: 0.75rem; font-weight: 600; color: var(--sw-text-muted); }

/* Post card */
.sw-post-card { padding: 0; }
.sw-card-thumb { display: block; overflow: hidden; border-radius: var(--sw-radius-lg) var(--sw-radius-lg) 0 0; }
.sw-card-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.sw-card-thumb:hover img { transform: scale(1.04); }
.sw-card-thumb-placeholder { height: 200px; border-radius: var(--sw-radius-lg) var(--sw-radius-lg) 0 0; }
.sw-card-body { padding: 1.25rem; }
.sw-post-meta { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.625rem; }
.sw-meta-item { font-size: 0.75rem; font-weight: 600; color: var(--sw-text-muted); }
.sw-read-more { display: inline-flex; align-items: center; gap: 0.375rem; color: #a78bfa; font-size: 0.875rem; font-weight: 700; transition: gap 0.2s; text-decoration: none; }
.sw-read-more:hover { gap: 0.625rem; }

/* Template card */
.sw-template-card { padding: 0; overflow: hidden; }
.sw-template-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sw-template-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw-template-initial { font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.3); }
.sw-template-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.875rem; }

/* Gradient backgrounds */
.sw-gradient-green       { background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(16,185,129,0.25)); }
.sw-gradient-blue-cyan   { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,211,238,0.25)); }
.sw-gradient-violet-pink { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.25)); }
.sw-gradient-orange      { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.2));  }
.sw-gradient-violet      { background: linear-gradient(135deg, rgba(124,58,237,0.2),  rgba(99,102,241,0.3)); }

/* ── Page Hero ──────────────────────────────────────────────────────────── */
.sw-page-hero   { padding: 5rem 0 3rem; background: var(--sw-bg-alt); border-bottom: 1px solid var(--sw-border-light); }
.sw-blog-hero   { padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.sw-page-title  { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.sw-page-sub    { color: var(--sw-text-sub); font-size: 1.0625rem; font-weight: 600; max-width: 640px; margin: 0 auto; }

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.sw-cta-section { padding: 6rem 0; }
.sw-cta-card {
  position: relative;
  padding: 4rem 2rem;
  border-radius: var(--sw-radius-xl);
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(124,58,237,0.12));
  border: 1px solid rgba(124,58,237,0.25);
  overflow: hidden;
  text-align: center;
}
.sw-cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.sw-cta-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; }
.sw-cta-sub { color: var(--sw-text-sub); font-size: 1.0625rem; font-weight: 600; max-width: 540px; margin: 0 auto 2rem; }
.sw-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.25rem; }
.sw-cta-note { color: var(--sw-text-muted); font-size: 0.8125rem; font-weight: 600; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.sw-404-section { padding: 8rem 0; text-align: center; position: relative; overflow: hidden; }
.sw-404-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.sw-404-number {
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 900;
  background: var(--sw-gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.sw-404-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.sw-404-sub { color: var(--sw-text-sub); font-size: 1.0625rem; font-weight: 600; max-width: 480px; margin: 0 auto 2.5rem; }
.sw-404-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.sw-search-form.sw-search-sm { max-width: 400px; }

/* ── Single post ─────────────────────────────────────────────────────────── */
.sw-post-hero { padding: 5rem 0 3rem; background: var(--sw-bg-alt); border-bottom: 1px solid var(--sw-border-light); }
.sw-post-meta-top { display: flex; align-items: center; justify-content: center; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sw-post-title { font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto 2rem; }
.sw-post-thumb { max-width: 900px; margin: 0 auto; border-radius: var(--sw-radius-lg); overflow: hidden; }
.sw-post-body { max-width: 780px; margin: 0 auto; padding: 4rem 1.25rem; }

/* Author box */
.sw-author-box { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--sw-bg-card); border: 1px solid var(--sw-border); border-radius: var(--sw-radius-lg); margin: 3rem 0; }
.sw-author-avatar { width: 4rem; height: 4rem; border-radius: 50%; flex-shrink: 0; }
.sw-author-name { font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.sw-author-bio { color: var(--sw-text-muted); font-size: 0.875rem; font-weight: 600; }

/* Post nav */
.sw-post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin: 2rem 0; }

/* Comments */
.sw-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sw-border-light); }
.sw-comments h2 { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.sw-comments .comment-form-comment label, .sw-comments .comment-form label { color: var(--sw-text-sub); font-size: 0.875rem; font-weight: 700; display: block; margin-bottom: 0.375rem; }
.sw-comments input, .sw-comments textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  color: #fff;
  font-family: var(--sw-font);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.sw-comments input:focus, .sw-comments textarea:focus { border-color: rgba(124,58,237,0.5); }
.sw-comments .submit { background: var(--sw-gradient-main); color: #fff; font-weight: 900; padding: 0.625rem 1.5rem; border-radius: var(--sw-radius); border: none; cursor: pointer; font-family: var(--sw-font); transition: opacity 0.2s; }
.sw-comments .submit:hover { opacity: 0.9; }

/* Prose / Content area */
.sw-prose { color: var(--sw-text-sub); font-size: 1rem; font-weight: 600; line-height: 1.8; }
.sw-prose h1, .sw-prose h2, .sw-prose h3, .sw-prose h4 { color: #fff; font-weight: 900; margin: 2rem 0 0.875rem; line-height: 1.3; }
.sw-prose h1 { font-size: 2rem; }
.sw-prose h2 { font-size: 1.5rem; }
.sw-prose h3 { font-size: 1.25rem; }
.sw-prose p { margin-bottom: 1.25rem; }
.sw-prose a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.sw-prose a:hover { color: #c4b5fd; }
.sw-prose ul, .sw-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.sw-prose ul { list-style: disc; }
.sw-prose ol { list-style: decimal; }
.sw-prose li { margin-bottom: 0.5rem; }
.sw-prose blockquote { border-left: 3px solid var(--sw-violet); padding-left: 1.25rem; color: var(--sw-text-muted); font-style: italic; margin: 1.5rem 0; }
.sw-prose code { background: rgba(255,255,255,0.06); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; color: #c4b5fd; font-family: Menlo, monospace; }
.sw-prose pre { background: rgba(255,255,255,0.04); border: 1px solid var(--sw-border); border-radius: var(--sw-radius); padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.sw-prose pre code { background: none; padding: 0; }
.sw-prose img { border-radius: var(--sw-radius); margin: 1.5rem 0; }
.sw-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.sw-prose th, .sw-prose td { padding: 0.75rem 1rem; border: 1px solid var(--sw-border); text-align: left; }
.sw-prose th { background: rgba(255,255,255,0.04); color: #fff; font-weight: 800; }
.sw-prose-wide { max-width: 100%; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.sw-pagination { display: flex; justify-content: center; margin-top: 3rem; }
.sw-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sw-pagination .page-numbers {
  padding: 0.5rem 0.875rem;
  border-radius: var(--sw-radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sw-border);
  color: var(--sw-text-sub);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}
.sw-pagination .page-numbers:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sw-pagination .page-numbers.current { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); color: #a78bfa; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.sw-empty-state { text-align: center; padding: 5rem 1rem; }
.sw-empty-title { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.sw-empty-sub { color: var(--sw-text-muted); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.sw-footer {
  background: var(--sw-bg-alt);
  border-top: 1px solid var(--sw-border-light);
  padding: 4rem 0 2rem;
}
.sw-footer-inner { max-width: var(--sw-max-width); margin: 0 auto; padding: 0 1.25rem; }
.sw-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .sw-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sw-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.sw-footer-brand {}
.sw-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.sw-footer-logo span { color: #fff; font-weight: 900; font-size: 1.25rem; }
.sw-footer-tagline { color: var(--sw-text-muted); font-size: 0.875rem; font-weight: 600; max-width: 260px; line-height: 1.6; margin-bottom: 1.5rem; }

.sw-social-row { display: flex; gap: 0.625rem; }
.sw-social-btn {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--sw-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--sw-text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sw-border);
  transition: all 0.2s;
  text-decoration: none;
}
.sw-social-btn:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }

.sw-footer-col-title { color: #fff; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.sw-footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.sw-footer-links a, .sw-footer-links li a {
  color: var(--sw-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
  text-decoration: none;
}
.sw-footer-links a:hover, .sw-footer-links li a:hover { color: #e4e4e7; }

.sw-footer-bottom {
  border-top: 1px solid var(--sw-border-light);
  padding-top: 2rem;
  text-align: center;
  color: var(--sw-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Toast notification ──────────────────────────────────────────────────── */
.sw-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 0.875rem 1.25rem;
  border-radius: var(--sw-radius);
  background: rgba(30,30,50,0.95);
  border: 1px solid var(--sw-border);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(1rem);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 320px;
}
.sw-toast.sw-toast-show { transform: translateY(0); opacity: 1; }
.sw-toast.sw-toast-success { border-color: rgba(74,222,128,0.35); }
.sw-toast.sw-toast-error { border-color: rgba(248,113,113,0.35); }

/* ── WordPress default overwrites ────────────────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--sw-text-muted); font-size: 0.8125rem; font-style: italic; text-align: center; margin-top: 0.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.sw-text-muted { color: var(--sw-text-muted) !important; }
.sw-text-danger { color: #f87171 !important; }
.sw-fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.sw-fade-in.sw-visible { opacity: 1; transform: translateY(0); }
.sw-body-menu-open { overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sw-hero { padding: 5rem 0 3.5rem; }
  .sw-section { padding: 3rem 0; }
  .sw-cta-card { padding: 2.5rem 1.25rem; }
  .sw-post-body { padding: 2.5rem 1.25rem; }
}

/* ── Search results page ─────────────────────────────────────────────────── */
.sw-search-results-title { font-size: 1.25rem; font-weight: 800; color: var(--sw-text-sub); margin-bottom: 2rem; }
.sw-search-results-title span { color: #fff; }
