/* ============================================
   SCALIBURCO — Design System & Styles
   Modern astronomy outreach site for kids/teens
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800;900&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg-deep:       #060a1a;
  --bg-surface:    #0d1231;
  --bg-card:       rgba(20, 28, 82, 0.45);
  --border-card:   rgba(108, 130, 255, 0.15);

  --accent-primary:  #7c5cfc;
  --accent-gold:     #ffc857;
  --accent-nebula:   #c45bff;
  --accent-cyan:     #38d9f5;

  --text-primary:  #eef0ff;
  --text-secondary: #9ea4c4;
  --text-dim:      #5e6493;

  --ff-heading: 'Outfit', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.15);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: #ffe09e; }

img { max-width: 100%; display: block; }

/* ---------- Animated Starfield Background ---------- */
#starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 10, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .brand-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.12);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,92,252,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
  display: inline-block;
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-nebula));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--ff-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-nebula));
  color: #fff;
  box-shadow: 0 4px 25px rgba(124,92,252,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(124,92,252,0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* ---------- Section Title ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- About Section ---------- */
#about {
  background: linear-gradient(180deg, transparent, rgba(13,18,49,0.5), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--text-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.stat-card .stat-number {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent-gold);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.about-visual {
  position: relative;
}

.planet-display {
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet-core {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8b6ff5, #4a2fa3, #1a0d45);
  box-shadow: 0 0 60px rgba(124,92,252,0.4), inset 0 0 40px rgba(0,0,0,0.4);
  animation: planetFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.planet-core::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 18%;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  filter: blur(8px);
}

.planet-ring {
  position: absolute;
  width: 340px;
  height: 80px;
  border: 2px solid rgba(124,92,252,0.25);
  border-radius: 50%;
  transform: rotateX(75deg);
  animation: planetFloat 6s ease-in-out infinite reverse;
}

.planet-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(196,91,255,0.15);
  border-radius: 50%;
}

@keyframes planetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ---------- Blog / Activities ---------- */
#blog {
  background: linear-gradient(180deg, transparent, rgba(6,10,26,0.8), transparent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-nebula), var(--accent-gold));
  opacity: 0;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,92,252,0.3);
  box-shadow: var(--shadow-glow);
}

.blog-card:hover::before { opacity: 1; }

.blog-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card-icon.purple { background: rgba(124,92,252,0.15); }
.card-icon.gold   { background: rgba(255,200,87,0.15); }
.card-icon.cyan   { background: rgba(56,217,245,0.15); }
.card-icon.pink   { background: rgba(196,91,255,0.15); }

.blog-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card .card-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-primary);
}

.blog-card .card-link:hover {
  gap: 10px;
  color: var(--accent-nebula);
}

/* ---------- APOD ---------- */
#apod {
  background: linear-gradient(180deg, transparent, rgba(13,18,49,0.4), transparent);
}

.apod-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.apod-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 0 50px rgba(124,92,252,0.1);
  background: var(--bg-card);
  aspect-ratio: 16/10;
}

.apod-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.apod-image-wrapper:hover img { transform: scale(1.03); }

.apod-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.apod-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-card);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.apod-info h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.apod-info .apod-date {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apod-info .apod-explanation {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

.apod-info .apod-explanation::-webkit-scrollbar { width: 4px; }
.apod-info .apod-explanation::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 4px; }

.apod-credit {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.apod-credit a { color: var(--accent-cyan); }

/* ---------- Contact ---------- */
#contact {
  background: linear-gradient(180deg, transparent, rgba(6,10,26,0.6));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.contact-info-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-info-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.contact-item:first-of-type { border-top: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124,92,252,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item-text .value {
  color: var(--text-primary);
  font-weight: 500;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.social-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.social-card > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-link .social-icon {
  font-size: 1.5rem;
  width: 36px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border-card);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-gold); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .about-grid,
  .apod-container,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual { order: -1; }

  .planet-display { max-width: 280px; }
  .planet-core { width: 140px; height: 140px; }
  .planet-ring { width: 240px; height: 60px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border-card);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .blog-grid { grid-template-columns: 1fr; }

  .social-links { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.2rem; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .stat-card .stat-number { font-size: 1.4rem; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================
   NIKOLA CONTENT STYLES
   Styles for Nikola-generated content elements
   ============================================ */

/* ---------- Posts & Pages ---------- */
.postpage,
.storypage {
  padding: 60px 0;
}

.postpage header h1,
.storypage header h1 {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.postpage header h1 a,
.storypage header h1 a {
  color: var(--text-primary);
}

.postpage header h1 a:hover {
  color: var(--accent-gold);
}

.e-content,
.entry-content,
.entry-summary {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 24px;
}

.e-content h2,
.e-content h3,
.e-content h4,
.e-content h5,
.e-content h6 {
  font-family: var(--ff-heading);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.e-content h2 { font-size: 1.6rem; }
.e-content h3 { font-size: 1.3rem; }
.e-content h4 { font-size: 1.1rem; }

.e-content p {
  margin-bottom: 1.2rem;
}

.e-content strong {
  color: var(--text-primary);
}

.e-content ul,
.e-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.e-content li {
  margin-bottom: 0.4rem;
}

.e-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.e-content code {
  background: rgba(124, 92, 252, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
}

.e-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.e-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text-primary);
}

.e-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--border-card);
}

.e-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.e-content th,
.e-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  text-align: left;
}

.e-content th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

.e-content td {
  background: var(--bg-card);
}

.e-content hr {
  border: none;
  border-top: 1px solid var(--border-card);
  margin: 2rem 0;
}

/* ---------- Post Metadata ---------- */
.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.metadata .byline,
.metadata .dateline,
.metadata .commentline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.metadata .byline a,
.metadata .dateline a {
  color: var(--text-secondary);
}

.metadata .byline a:hover,
.metadata .dateline a:hover {
  color: var(--accent-gold);
}

.metadata time {
  color: var(--accent-gold);
}

/* ---------- Post Navigation ---------- */
.postpromonav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.postpromonav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.postpromonav .tags li {
  display: inline-block;
}

.postpromonav .tags li a,
.postpromonav .pager li a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.postpromonav .tags li a:hover,
.postpromonav .pager li a:hover {
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
}

.postpromonav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Post Index (blog list pages) ---------- */
.postindex {
  padding: 40px 0;
}

.postindex article {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.postindex article:hover {
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: var(--shadow-glow);
}

.postindex article header h1 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.postindex article header h1 a {
  color: var(--text-primary);
}

.postindex article header h1 a:hover {
  color: var(--accent-gold);
}

/* ---------- Pager ---------- */
.pager,
.postindexpager {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 48px 0 24px;
  list-style: none;
}

.pager a,
.postindexpager a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pager a:hover,
.postindexpager a:hover {
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ---------- Archive & Tag Lists ---------- */
.post-list,
.postlist {
  list-style: none;
}

.post-list li,
.postlist li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.post-list li a,
.postlist li a {
  color: var(--text-primary);
  font-weight: 500;
}

.post-list li a:hover,
.postlist li a:hover {
  color: var(--accent-gold);
}

.post-list .listdate,
.postlist .listdate {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Tag cloud / tag list */
.tag-cloud,
.tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag-cloud a,
.tags ul li a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag-cloud a:hover,
.tags ul li a:hover {
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
}

/* ---------- Comments Section ---------- */
.comments {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.comments h2 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ---------- Screen readers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
}

/* ---------- Pagination helper ---------- */
.page-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}

.page-navigation a,
.page-navigation span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-navigation a:hover {
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
}

.page-navigation .current {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* ---------- Nikola Content Pages (general) ---------- */
section.section { padding: 60px 0; }

/* ---------- Front Index Header ---------- */
.front-index-header {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
