/* Sitemap Page Styles */
:root {
  --bg:        #080816;
  --surface:   #12122a;
  --card:      #1a1a38;
  --border:    #2a2a55;
  --accent:    #a855f7;
  --accent2:   #ec4899;
  --text:      #f0eef8;
  --muted:     #9998b8;
  --radius:    14px;
}

/* Light mode overrides */
body.bg-light {
  --bg:        #f8f6ff;
  --surface:   #ffffff;
  --card:      #f0ecff;
  --border:    #e0d8f0;
  --text:      #2d2a3a;
  --muted:     #6b6680;
}

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

body {
  font-family: 'Inter', sans-serif !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(168, 85, 247, 0.18) 0, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(236, 72, 153, 0.12) 0, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(59, 130, 246, 0.08) 0, transparent 50%) !important;
  background-attachment: fixed !important;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a0933 0%, #0d1a40 40%, #0a1628 70%, #080816 100%);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% -10%, rgba(168,85,247,.3), transparent),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(236,72,153,.12), transparent);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.4), rgba(236,72,153,.4), transparent);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #d8b4fe, #f472b6, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  position: relative;
}
.hero p {
  color: #c4c0d8;
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Light mode hero adjustments */
body.bg-light .hero {
  background: linear-gradient(135deg, #2d1a4a 0%, #1a0f2e 40%, #120a20 70%, #0d0618 100%);
}
body.bg-light .hero p {
  color: #d8d4e8;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section ── */
.section {
  margin-top: 48px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
body.bg-light .section-header {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.section-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f0eef8;
}
body.bg-light .section-title {
  color: #2d2a3a;
}
.section-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* ── Card ── */
.site-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 26, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: #f0eef8;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.bg-light .site-link {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #2d2a3a;
}
.site-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168,85,247,.15);
}
.site-link .link-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.site-link .link-label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ede9fe;
}
body.bg-light .site-link .link-label {
  color: #3d3a4a;
}
.site-link .link-path {
  font-size: 0.74rem;
  color: #9f9dba;
  margin-top: 2px;
  font-family: monospace;
}
body.bg-light .site-link .link-path {
  color: #7a758a;
}

/* colour accents per section */
.color-purple .section-icon  { background: rgba(168,85,247,.15); }
.color-pink   .section-icon  { background: rgba(236,72,153,.15); }
.color-blue   .section-icon  { background: rgba(59,130,246,.15); }
.color-green  .section-icon  { background: rgba(34,197,94,.15); }
.color-orange .section-icon  { background: rgba(249,115,22,.15); }
.color-teal   .section-icon  { background: rgba(20,184,166,.15); }
.color-red    .section-icon  { background: rgba(239,68,68,.15); }
.color-yellow .section-icon  { background: rgba(234,179,8,.15); }
.color-indigo .section-icon  { background: rgba(99,102,241,.15); }

.color-purple .site-link:hover { border-color: #a855f7; box-shadow: 0 6px 24px rgba(168,85,247,.15); }
.color-pink   .site-link:hover { border-color: #ec4899; box-shadow: 0 6px 24px rgba(236,72,153,.15); }
.color-blue   .site-link:hover { border-color: #3b82f6; box-shadow: 0 6px 24px rgba(59,130,246,.15); }
.color-green  .site-link:hover { border-color: #22c55e; box-shadow: 0 6px 24px rgba(34,197,94,.15); }
.color-orange .site-link:hover { border-color: #f97316; box-shadow: 0 6px 24px rgba(249,115,22,.15); }
.color-teal   .site-link:hover { border-color: #14b8a6; box-shadow: 0 6px 24px rgba(20,184,166,.15); }
.color-red    .site-link:hover { border-color: #ef4444; box-shadow: 0 6px 24px rgba(239,68,68,.15); }
.color-yellow .site-link:hover { border-color: #eab308; box-shadow: 0 6px 24px rgba(234,179,8,.15); }
.color-indigo .site-link:hover { border-color: #6366f1; box-shadow: 0 6px 24px rgba(99,102,241,.15); }

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 0;
}

/* ── Admin badge ── */
.badge-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 6px;
}

/* Global footer handled by footer.php */
