/* SpellDraft Landing Page - Custom Mystical Theme Stylesheet */

:root {
  /* Color Palette - Darker Blues, Purples, Oranges, and Slate Greys */
  --color-bg-darkest: #050811;   /* Deep void black-blue */
  --color-bg-dark: #0b1120;      /* Dark navy blue */
  --color-bg-medium: #111a2e;    /* Slate blue-grey */
  --color-bg-light: #1c273e;     /* Accent blue-grey */
  
  --color-purple: #9d52ff;       /* Mystical purple */
  --color-purple-hover: #b47dff;
  --color-purple-glow: rgba(157, 82, 255, 0.4);
  --color-purple-border: rgba(157, 82, 255, 0.2);

  --color-orange: #f97316;       /* Spell-fire orange */
  --color-orange-hover: #fb923c;
  --color-orange-glow: rgba(249, 115, 22, 0.4);
  --color-orange-border: rgba(249, 115, 22, 0.2);

  --color-gold: #d4af37;         /* Antique gold accents */
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  
  --color-grey-dark: #121824;    /* Slate grey card background */
  --color-grey-border: #232c3f;  /* Grey card border */
  
  --color-text: #f3f4f6;         /* Bright text */
  --color-text-muted: #9ca3af;   /* Muted text */
  --color-text-dark: #6b7280;    /* Dark helper text */

  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(5, 8, 17, 0.85);
  --glass-border: rgba(157, 82, 255, 0.15);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-darkest);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: 700;
}

p {
  line-height: 1.7;
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Section Spacing & Backgrounds */
.section-padding {
  padding: 110px 0;
}

.bg-dark-mystic {
  background: radial-gradient(circle at 50% 0%, var(--color-bg-dark) 0%, var(--color-bg-darkest) 100%);
}

.bg-darker-grey {
  background-color: var(--color-bg-darkest);
}

.border-top-mystic {
  border-top: 1px solid var(--color-purple-border);
}

/* Header & Navigation */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-purple {
  color: var(--color-purple);
  text-shadow: 0 0 10px var(--color-purple-glow);
}

.logo-orange {
  color: var(--color-orange);
  text-shadow: 0 0 10px var(--color-orange-glow);
}

.logo-tag {
  font-size: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(157, 82, 255, 0.15);
  color: var(--color-purple-hover);
  border: 1px solid var(--color-purple-border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

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

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--color-purple-hover);
  text-shadow: 0 0 8px var(--color-purple-glow);
  border-bottom: 2px solid var(--color-purple);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Kofi Muted Button */
.btn-kofi {
  background: rgba(18, 24, 38, 0.4);
  color: var(--color-text-muted);
  border: 1px solid var(--color-grey-border);
}

.btn-kofi:hover {
  background: rgba(255, 94, 91, 0.08);
  color: #ff5e5b;
  border-color: #ff5e5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 94, 91, 0.15);
}

/* Main Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 11px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 13.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #7c2d12 0%, var(--color-orange) 50%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid var(--color-orange-hover);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-orange-glow);
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 50%, var(--color-orange) 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #4c1d95 0%, var(--color-purple) 50%, #7c3aed 100%);
  color: #ffffff;
  border: 1px solid var(--color-purple-hover);
  box-shadow: 0 4px 15px rgba(157, 82, 255, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-purple-glow);
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-hover) 50%, var(--color-purple) 100%);
}

.btn-outline {
  background: rgba(18, 24, 38, 0.6);
  color: var(--color-purple-hover);
  border: 1px solid var(--color-purple-border);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(157, 82, 255, 0.08);
  border-color: var(--color-purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 82, 255, 0.15);
}

.btn-github {
  background: #111827;
  color: #f3f4f6;
  border: 1px solid #374151;
}

.btn-github:hover {
  background: #1f2937;
  border-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.hero-background-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: blur(1.5px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at center, rgba(11, 17, 32, 0.2) 0%, var(--color-bg-darkest) 90%),
    linear-gradient(to bottom, rgba(5, 8, 17, 0.4) 0%, var(--color-bg-darkest) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-orange);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid var(--color-orange-border);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--color-orange-glow);
}

.rune-symbol {
  color: var(--color-purple);
  margin: 0 4px;
}

.hero-title {
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.highlight-magic {
  background: linear-gradient(to right, var(--color-purple), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(157, 82, 255, 0.3));
}

.hero-subtitle {
  font-size: 17px;
  color: #d1d5db;
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-size: 22px;
  z-index: 2;
  animation: bounceVertical 2s infinite;
}

.scroll-down-indicator:hover {
  color: var(--color-purple-hover);
}

@keyframes bounceVertical {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 65px auto;
}

.subtitle-rune {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-purple-hover);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 6px var(--color-purple-glow);
}

.section-header h2 {
  font-size: 34px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.header-line {
  width: 90px;
  height: 3px;
  background-color: var(--color-orange);
  margin: 0 auto 20px auto;
  box-shadow: 0 0 8px var(--color-orange-glow);
  position: relative;
}

.header-line::before, .header-line::after {
  content: '♦';
  position: absolute;
  color: var(--color-purple);
  font-size: 11px;
  top: -6px;
  text-shadow: 0 0 5px var(--color-purple-glow);
}
.header-line::before { left: -12px; }
.header-line::after { right: -12px; }

/* Feature Detail Grid Row */
.feature-detail-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.feature-detail-row:last-child {
  margin-bottom: 0;
}

.feature-detail-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-detail-row.full-width-row {
  grid-template-columns: 1fr;
}

.item-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin-top: 24px;
  padding: 0;
}

.item-benefit-grid li {
  background: rgba(28, 39, 62, 0.25);
  border: 1px solid var(--color-grey-border);
  padding: 24px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-benefit-grid li:hover {
  border-color: var(--color-purple-border);
  background: rgba(28, 39, 62, 0.4);
  transform: translateY(-3px);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(157, 82, 255, 0.08);
}

.item-benefit-grid .item-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.5px;
}

.item-benefit-grid .item-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.feature-detail-row.reverse .feature-detail-text {
  order: 2;
}

.feature-detail-row.reverse .feature-detail-media {
  order: 1;
}

.feature-detail-text {
  display: flex;
  flex-direction: column;
}

.badge-mini {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.text-purple {
  color: var(--color-purple-hover);
  text-shadow: 0 0 8px var(--color-purple-glow);
}

.text-orange {
  color: var(--color-orange);
  text-shadow: 0 0 8px var(--color-orange-glow);
}

.feature-detail-text h3 {
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.feature-detail-text p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.f-tag {
  font-size: 12px;
  background: rgba(28, 39, 62, 0.4);
  border: 1px solid var(--color-grey-border);
  padding: 6px 12px;
  border-radius: 4px;
  color: #e5e7eb;
}

.f-tag i {
  color: var(--color-purple);
  margin-right: 4px;
}

/* Feature 5 Consumables List */
.item-benefit-list {
  list-style: none;
  margin-top: 10px;
}

.item-benefit-list li {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.6;
}

.item-name {
  font-family: var(--font-title);
  font-weight: 700;
  display: block;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.item-name i {
  margin-right: 4px;
}

.scroll-reroll {
  color: #60a5fa; /* Blue */
}
.scroll-ban {
  color: #f87171; /* Red */
}
.lost-grimoire {
  color: #c084fc; /* Purple */
}
.tome-talents {
  color: #fbbf24; /* Gold */
}

.feature-actions-small {
  margin-top: 15px;
}

.inline-link {
  color: var(--color-orange);
  text-decoration: underline;
}
.inline-link:hover {
  color: var(--color-orange-hover);
}

/* Screenshot Window Frame */
.screenshot-frame {
  background: var(--color-grey-dark);
  border: 1px solid var(--color-grey-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

.screenshot-frame:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--color-purple-border);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(157, 82, 255, 0.15);
}

.frame-bar {
  background: #182030;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-grey-border);
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.frame-dot.red { background-color: #ef4444; }
.frame-dot.yellow { background-color: #f59e0b; }
.frame-dot.green { background-color: #10b981; }

.frame-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-left: auto;
  text-transform: lowercase;
}

.screenshot-img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
}

/* Changelog Timeline */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-purple) 15%, var(--color-orange) 85%, transparent);
  transform: translateX(-50%);
}

.commit-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  display: flex;
  position: relative;
  width: 50%;
}

.timeline-item.left-align {
  align-self: flex-start;
  padding-right: 45px;
  justify-content: flex-end;
}

.timeline-item.right-align {
  align-self: flex-end;
  padding-left: 45px;
  justify-content: flex-start;
}

.timeline-badge {
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg-darkest);
  border: 3px solid var(--color-purple);
  z-index: 5;
}

.timeline-item.left-align .timeline-badge {
  right: -7px;
  box-shadow: 0 0 10px var(--color-purple-glow);
}

.timeline-item.right-align .timeline-badge {
  left: -7px;
  box-shadow: 0 0 10px var(--color-orange-glow);
}

.timeline-badge.purple-badge {
  border-color: var(--color-purple);
}

.timeline-badge.orange-badge {
  border-color: var(--color-orange);
}

.timeline-content {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--color-grey-border);
  padding: 24px;
  border-radius: 8px;
  max-width: 440px;
  backdrop-filter: blur(4px);
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-item.left-align .timeline-content {
  border-right: 3px solid var(--color-purple);
}

.timeline-item.right-align .timeline-content {
  border-left: 3px solid var(--color-orange);
}

.timeline-content:hover {
  transform: translateY(-2px);
  background: rgba(22, 30, 49, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.timeline-date {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.timeline-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}

.timeline-content h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #fff;
}

.timeline-content p {
  font-size: 13.5px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.commit-author {
  font-size: 12px;
  color: var(--color-purple-hover);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.commit-link-btn {
  font-size: 11px;
  font-family: var(--font-title);
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.commit-link-btn:hover {
  background: var(--color-orange);
  color: #000;
  border-color: var(--color-orange);
}

.changelog-footer-actions {
  text-align: center;
  margin-top: 30px;
}

/* Setup Guide Section Tabs */
.setup-tabs-wrapper {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--color-grey-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.setup-tab-nav {
  display: flex;
  background: #101622;
  border-bottom: 1px solid var(--color-grey-border);
}

.tab-link {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  padding: 20px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  border-right: 1px solid var(--color-grey-border);
}

.tab-link:last-child {
  border-right: none;
}

.tab-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.tab-link.active {
  background: rgba(157, 82, 255, 0.05);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--color-purple);
}

.tab-link.active .tab-step {
  background: var(--color-purple);
  border-color: var(--color-purple);
  box-shadow: 0 0 8px var(--color-purple-glow);
}

.tab-link:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.setup-tab-content {
  padding: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-grey-border);
  padding-bottom: 16px;
}

.panel-icon {
  font-size: 24px;
  color: var(--color-orange);
  text-shadow: 0 0 6px var(--color-orange-glow);
}

.tab-panel h3 {
  font-size: 22px;
  text-transform: uppercase;
}

.tab-panel p {
  font-size: 15px;
  margin-bottom: 24px;
}

.tab-tip {
  background: rgba(157, 82, 255, 0.05);
  border-left: 3px solid var(--color-purple);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0 0 0;
  color: #e5e7eb;
}

.tab-tip strong {
  color: var(--color-purple-hover);
}

/* Server Base Resource Cards Grid */
.resource-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.resource-card {
  background: rgba(28, 39, 62, 0.3);
  border: 1px solid var(--color-grey-border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.resource-card:hover {
  border-color: var(--color-orange-border);
  background: rgba(28, 39, 62, 0.5);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(249, 115, 22, 0.08);
  transform: translateY(-2px);
}

.card-logo {
  font-size: 32px;
  color: var(--color-orange);
  margin-bottom: 16px;
  text-shadow: 0 0 8px var(--color-orange-glow);
}

.resource-card h4 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 13.5px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resource-card:hover .card-link {
  color: var(--color-orange-hover);
}

/* Code Terminal Block */
.code-terminal-block {
  background: #02040a;
  border: 1px solid #1f293d;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.terminal-header {
  background: #0b0f19;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #121824;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
}

.terminal-title {
  font-family: var(--font-body);
  font-size: 11px;
  color: #6b7280;
  margin-left: 10px;
}

.code-terminal-block pre {
  padding: 20px;
  overflow-x: auto;
}

.code-terminal-block code {
  color: #93c5fd; /* Soft Blue */
  font-size: 13.5px;
  line-height: 1.6;
}

.term-prompt {
  color: #4b5563; /* Comments / prompt */
}

/* Client Setup Lists */
.setup-ol {
  list-style: none;
  counter-reset: setup-counter;
}

.setup-ol > li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
  counter-increment: setup-counter;
}

.setup-ol > li::before {
  content: counter(setup-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--color-orange-border);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.setup-ol h4 {
  font-size: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.inline-code {
  font-family: 'Courier New', Courier, monospace;
  background: #070b13;
  border: 1px solid #111a2e;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #fb7185;
  display: inline-block;
  margin: 6px 0;
}

.ol-subtip {
  font-size: 12.5px;
  color: var(--color-text-dark);
  margin-top: 2px;
}

/* Realmlist Copy Box */
.realmlist-copy-box {
  display: flex;
  gap: 12px;
  max-width: 450px;
  margin-top: 15px;
}

.realmlist-copy-box input {
  flex-grow: 1;
  background: #02040a;
  border: 1px solid #1f293d;
  border-radius: 6px;
  color: #10b981; /* Green */
  padding: 10px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px;
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  background-image: url('images/card_back.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  border-top: 1px solid var(--color-purple-border);
  border-bottom: 1px solid var(--color-purple-border);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-bg-darkest) 0%, rgba(5, 8, 17, 0.88) 50%, var(--color-bg-darkest) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-content h2 {
  font-size: 38px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 16.5px;
  color: #d1d5db;
  margin-bottom: 35px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer styling */
#main-footer {
  background: #03050a;
  padding: 80px 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-about .logo {
  font-size: 24px;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.footer-about .logo-purple {
  color: var(--color-purple);
  text-shadow: 0 0 10px var(--color-purple-glow);
  font-size: 24px;
}

.footer-about .logo-orange {
  color: var(--color-orange);
  text-shadow: 0 0 10px var(--color-orange-glow);
  font-size: 24px;
}

.footer-desc {
  font-size: 13.5px;
  margin-top: 15px;
  max-width: 360px;
}

.footer-grid h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid #111827;
  padding-bottom: 8px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 12px;
}

.footer-grid ul li a {
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.footer-grid ul li a:hover {
  color: var(--color-purple-hover);
  padding-left: 2px;
}

.footer-kofi {
  color: #ff5e5b !important;
}

.footer-kofi:hover {
  text-shadow: 0 0 8px rgba(255, 94, 91, 0.4);
}

.footer-kofi i {
  margin-right: 4px;
}

.footer-credits {
  background: #020306;
  padding: 40px 0;
  border-top: 1px solid #0d121c;
}

.credits-text {
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-grey-border);
  margin: 20px auto;
}

.disclaimer {
  font-size: 11px;
  color: var(--color-text-dark);
  text-align: center;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto 15px auto;
}

.copyright {
  font-size: 11px;
  color: var(--color-text-dark);
  text-align: center;
}

/* Responsive Design Media Queries */
@media (max-width: 991px) {
  .feature-detail-row, .feature-detail-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-detail-row.reverse .feature-detail-text {
    order: 1;
  }
  
  .feature-detail-row.reverse .feature-detail-media {
    order: 2;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
  }
  
  .timeline-item.left-align, .timeline-item.right-align {
    padding-left: 45px;
    padding-right: 0;
    justify-content: flex-start;
    align-self: flex-start;
  }
  
  .timeline-item.left-align .timeline-badge, .timeline-item.right-align .timeline-badge {
    left: 13px;
  }
  
  .timeline-item.left-align .timeline-content {
    border-right: none;
    border-left: 3px solid var(--color-purple);
  }
  
  .setup-tab-nav {
    flex-direction: column;
  }
  
  .tab-link {
    border-right: none;
    border-bottom: 1px solid var(--color-grey-border);
    justify-content: flex-start;
    padding: 16px 20px;
  }
  
  .resource-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none; /* simple mobile nav fallback */
  }
  
  /* Mobile Header Sizing and Flex Optimization */
  .logo {
    font-size: 18px;
  }
  
  .logo-tag {
    display: none; /* hide the AzerothCore badge on mobile to prevent overflow */
  }
  

  
  .nav-btn-text {
    display: none; /* hide Repository text, showing only GitHub icon on mobile */
  }
  
  .nav-buttons {
    gap: 8px;
  }
  
  .nav-container {
    height: 70px;
    padding: 0 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .hero-actions, .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .setup-tab-content {
    padding: 24px;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(2, 4, 10, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 82vh;
  border-radius: 8px;
  border: 1px solid var(--color-purple-border);
  box-shadow: 0 0 40px var(--color-purple-glow);
  animation: zoomLightbox 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoomLightbox {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--color-text-muted);
  font-size: 44px;
  font-weight: 300;
  transition: var(--transition-smooth);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--color-purple-glow);
  transform: scale(1.1);
}

.lightbox-caption {
  margin: 15px auto 0 auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.screenshot-img.lightbox-trigger {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.screenshot-img.lightbox-trigger:hover {
  filter: brightness(1.08);
}
