/* ===== Beast of Reincarnation Guide - Enhanced Visual Styles ===== */

:root {
  --bg-primary: #080c12;
  --bg-secondary: #0e141c;
  --bg-card: #141c28;
  --bg-card-hover: #1a2534;
  --bg-tag: #1f2c3d;
  --text-primary: #eaf0f8;
  --text-secondary: #94a3b8;
  --text-muted: #5c6d84;
  --accent: #E04040;
  --accent-bright: #ff6b6b;
  --accent-glow: rgba(224, 64, 64, 0.2);
  --accent-dim: #b53030;
  --danger: #e74c3c;
  --danger-dim: rgba(231, 76, 60, 0.12);
  --success: #2ecc71;
  --success-dim: rgba(46, 204, 113, 0.12);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.12);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.12);
  --border: #1e2d40;
  --border-light: #2a3d55;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 0 30px rgba(224, 64, 64, 0.15);
  --max-width: 1200px;
  --sidebar-width: 240px;
  --font: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background mist texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(224,64,64,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(224,64,64,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.02) 0%, transparent 60%);
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-bright); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(224,64,64,0.15);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center;
  padding: 0 24px;
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; width: 100%;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--text-primary); white-space: nowrap; transition: opacity .2s;
}
.navbar-brand:hover { opacity: 0.85; }
.navbar-brand .logo-img {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: 0 0 16px rgba(224,64,64,0.25);
}
.navbar-brand .brand-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links { display: flex; gap: 2px; list-style: none; flex: 1; }
.navbar-links a {
  color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; transition: all .25s; position: relative;
}
.navbar-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent); border-radius: 1px;
  transition: width .25s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--accent-bright); background: rgba(224,64,64,0.08);
}
.navbar-links a:hover::after, .navbar-links a.active::after { width: 60%; }
.navbar-search { position: relative; width: 200px; }
.navbar-search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-primary); font-size: 13px;
  font-family: var(--font); transition: all .3s;
}
.navbar-search input:focus {
  outline: none; border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}
.navbar-search::before {
  content: '\1F50D'; position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); font-size: 13px; opacity: .5;
}
.navbar-search input::placeholder { color: var(--text-muted); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px 60px;
}
.page-layout { display: flex; gap: 28px; }
.sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 76px; align-self: flex-start;
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  padding: 0 12px 8px; margin-bottom: 4px;
}
.sidebar-link {
  display: block; padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; transition: all .15s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-card); }
.sidebar-link.active { color: var(--accent-bright); border-left-color: var(--accent); background: var(--accent-glow); }
.content { flex: 1; min-width: 0; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #0a1018 0%, #111d2b 30%, #0d151f 60%, #080e16 100%);
  border: 1px solid rgba(224,64,64,0.12);
  border-radius: 16px;
  padding: 56px 48px; margin-bottom: 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-accent), var(--shadow-lg);
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(224,64,64,0.05) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,64,64,0.3), transparent);
  pointer-events: none;
}

/* Animated mist particles */
.hero-mist {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-mist span {
  position: absolute;
  background: radial-gradient(circle, rgba(224,64,64,0.08), transparent);
  border-radius: 50%;
  animation: floatMist 8s infinite ease-in-out;
}
.hero-mist span:nth-child(1) { width:200px; height:200px; top:10%; left:-5%; animation-delay:0s; }
.hero-mist span:nth-child(2) { width:150px; height:150px; top:60%; left:70%; animation-delay:2s; }
.hero-mist span:nth-child(3) { width:120px; height:120px; top:20%; left:50%; animation-delay:4s; }
.hero-mist span:nth-child(4) { width:180px; height:180px; top:70%; left:20%; animation-delay:6s; }

@keyframes floatMist {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(231,76,60,0.15);
  color: var(--danger);
  font-size: 12px; font-weight: 700; margin-bottom: 20px;
  animation: pulse 2s infinite;
  border: 1px solid rgba(231,76,60,0.2);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

.hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.5px; }
.hero h1 .sub {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(224,64,64,0.3));
}
.hero h1 .sep { color: var(--text-muted); font-weight: 300; margin: 0 8px; }
.hero p { color: var(--text-secondary); font-size: 16px; max-width: 680px; margin-bottom: 28px; line-height: 1.7; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat {
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.hero-stat:not(:last-child)::after {
  content: ''; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 32px; background: var(--border); opacity: 0.5;
}
.hero-stat .num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 0.6s ease-out;
}
.hero-stat .label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

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

/* ===== SECTION HEADERS ===== */
.section { margin-bottom: 44px; animation: fadeInUp 0.5s ease-out; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title {
  font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 12px;
}
.section-title .icon { font-size: 24px; }
.section-title::before {
  content: ''; width: 4px; height: 26px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-dim));
  border-radius: 2px; margin-right: 6px;
}
.section-link {
  font-size: 13px; color: var(--text-secondary); font-weight: 600;
  transition: all .2s; display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--accent-bright); gap: 8px; }

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

/* ===== CARD GRID ===== */
.card-grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  cursor: pointer; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(224,64,64,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(224,64,64,0.1);
}
.card:hover::before { opacity: 1; }
.card .card-icon {
  font-size: 34px; margin-bottom: 14px;
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(224,64,64,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s;
}
.card:hover .card-icon { background: rgba(224,64,64,0.15); transform: scale(1.05); }
.card .card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card .card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.card .card-meta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ===== TAGS ===== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.tag-danger { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(231,76,60,0.15); }
.tag-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(46,204,113,0.15); }
.tag-info { background: var(--info-dim); color: var(--info); border: 1px solid rgba(59,130,246,0.15); }
.tag-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168,85,247,0.15); }
.tag-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(224,64,64,0.15); }
.tag-muted { background: var(--bg-tag); color: var(--text-muted); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin-bottom: 24px; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
thead th {
  background: var(--bg-secondary); color: var(--text-secondary);
  font-weight: 700; text-align: left; padding: 12px 16px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(30,45,64,0.5); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--bg-card); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-sm); }
tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius-sm) 0; }

/* ===== CONTENT BLOCK ===== */
.content-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
  transition: border-color .3s;
}
.content-block:hover { border-color: var(--border-light); }
.content-block h2 { font-size: 21px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.content-block h3 { font-size: 16px; font-weight: 700; margin: 22px 0 12px; color: var(--accent-bright); }
.content-block p { margin-bottom: 12px; color: var(--text-secondary); }
.content-block ul, .content-block ol { margin: 8px 0 18px 20px; color: var(--text-secondary); }
.content-block li { margin-bottom: 7px; }
.content-block strong { color: var(--text-primary); }
.content-block code {
  background: var(--bg-secondary); padding: 2px 7px; border-radius: 5px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-bright);
  border: 1px solid var(--border);
}

/* ===== CALLOUTS ===== */
.callout {
  border-left: 3px solid; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 18px 0; font-size: 14px; position: relative;
}
.callout::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.callout-tip { border-color: var(--info); background: var(--info-dim); }
.callout-warn { border-color: var(--danger); background: var(--danger-dim); }
.callout-success { border-color: var(--success); background: var(--success-dim); }
.callout-danger { border-color: #ff0040; background: rgba(255,0,64,.06); }
.callout-title { font-weight: 700; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text-primary); }

/* ===== BOSS CARD ===== */
.boss-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px; transition: all .3s;
}
.boss-card:hover { border-color: rgba(224,64,64,0.2); box-shadow: var(--shadow); }
.boss-card-header {
  display: flex; align-items: center; gap: 16px; padding: 22px 28px;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary));
  border-bottom: 1px solid var(--border);
}
.boss-num {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .4; line-height: 1; min-width: 40px;
}
.boss-info h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.boss-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.boss-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary)); border-bottom: 1px solid var(--border); }
.boss-avatar { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; background: rgba(224,64,64,0.08); }
.boss-info h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.boss-info .boss-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }
.boss-body { padding: 20px 24px; }
.boss-body h4 { font-size: 14px; font-weight: 700; color: var(--accent-bright); margin: 16px 0 8px; }
.boss-body h4:first-child { margin-top: 0; }
.boss-body p, .boss-body li { font-size: 14px; color: var(--text-secondary); }
.boss-body ul { margin: 4px 0 12px 20px; }
.boss-phase { display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap; }
.phase-bar { height: 6px; flex: 1; min-width: 40px; border-radius: 3px; background: var(--bg-tag); }
.phase-bar.active { background: var(--danger); }

/* ===== CLASS CARD ===== */
.class-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all .3s; position: relative; overflow: hidden;
}
.class-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.class-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(224,64,64,0.04), transparent 80%);
  opacity: 0; transition: opacity .3s;
}
.class-card.c-assassin::before { background: var(--danger); }
.class-card.c-guardian::before { background: var(--info); }
.class-card.c-hunter::before { background: var(--success); }
.class-card.c-warlock::before { background: var(--purple); }
.class-card.c-illusionist::before { background: #e67e22; }
.class-card.c-medic::before { background: #1abc9c; }
.class-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.class-card:hover::after { opacity: 1; }
.class-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.class-icon { font-size: 30px; width: 44px; height: 44px; border-radius: 10px; background: rgba(224,64,64,0.06); display: flex; align-items: center; justify-content: center; }
.class-name { font-size: 17px; font-weight: 800; }
.class-role { font-size: 12px; color: var(--text-muted); }
.class-stats { display: flex; gap: 12px; margin: 14px 0; font-size: 12px; }
.class-stat { flex: 1; text-align: center; }
.class-stat > div:first-child { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 5px; }
.class-stat .bar { height: 5px; border-radius: 3px; background: var(--bg-tag); margin-top: 4px; overflow: hidden; }
.class-stat .bar-fill { height: 100%; border-radius: 3px; transition: width .6s ease-out; }
.class-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.class-skills { margin-top: 12px; }
.class-skill {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 0;
  font-size: 13px; border-top: 1px solid var(--border);
}
.class-skill .sk-icon { flex-shrink: 0; }
.class-skill .sk-name { font-weight: 700; color: var(--text-primary); }
.class-skill .sk-desc { color: var(--text-muted); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-dim), var(--border), var(--accent-dim));
}
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before {
  content: ''; position: absolute; left: -22px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(224,64,64,0.3);
}
.timeline-item .tl-time {
  font-size: 11px; color: var(--accent-bright); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.timeline-item .tl-title { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.timeline-item .tl-desc { font-size: 14px; color: var(--text-secondary); }

/* ===== STEPS ===== */
.steps { counter-reset: step; margin: 16px 0; }
.step { position: relative; padding-left: 48px; margin-bottom: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--bg-primary); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(224,64,64,0.2);
}
.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* ===== PROGRESS BAR ===== */
.progress { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.progress-label { width: 80px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.progress-track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-tag); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .5s; }
.progress-val { width: 36px; font-size: 12px; font-weight: 700; text-align: right; }

/* ===== TABS ===== */
.tab-group { margin-bottom: 20px; }
.tab-bar {
  display: flex; gap: 2px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.tab-bar-scroll { overflow-x: auto; }
.tab-bar .tab-btn, .tab-btn {
  padding: 10px 16px; background: transparent; border: none;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .25s;
  font-family: var(--font); white-space: nowrap;
}
.tab-bar .tab-btn:hover, .tab-btn:hover { color: var(--text-primary); }
.tab-bar .tab-btn.active, .tab-btn.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== EXTRACTION POINTS ===== */
.extraction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.extraction-point {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: all .25s;
}
.extraction-point:hover { border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--shadow); }
.extraction-point .ep-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.extraction-point .ep-name { font-size: 15px; font-weight: 700; }
.extraction-point .ep-type { font-size: 12px; }
.extraction-point .ep-desc { font-size: 13px; color: var(--text-secondary); }
.extraction-point .ep-risk { margin-top: 8px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(224,64,64,0.1); padding: 36px 24px;
  text-align: center; color: var(--text-muted); font-size: 13px;
  background: var(--bg-secondary);
}
.footer a { color: var(--text-secondary); transition: color .2s; }
.footer a:hover { color: var(--accent-bright); }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; opacity: 0; transition: all .3s;
  z-index: 90;
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover {
  background: var(--accent); color: var(--bg-primary); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(224,64,64,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-search { display: none; }
  .sidebar { display: none; }
  .page-layout { display: block; }
  .content-layout { display: block; }
  .content-layout .sidebar { display: none; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 16px; }
  .container { padding: 70px 16px 40px; }
  .page-header { padding: 24px 16px; }
  .page-header h1 { font-size: 22px; }
  .build-pros-cons { flex-direction: column; gap: 8px; }
  .section-nav { flex-direction: column; gap: 8px; }
  .boss-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { opacity: .5; }

/* ===== STAT PILLS ===== */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.stat-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .25s;
}
.stat-pill:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat-pill .sp-icon { font-size: 20px; }
.stat-pill .sp-val { font-weight: 800; font-size: 16px; }
.stat-pill .sp-label { font-size: 12px; color: var(--text-muted); }

/* ===== WEAPON ===== */
.weapon-row { display: flex; align-items: center; gap: 12px; }
.weapon-icon { font-size: 20px; }
.weapon-tier { display: inline-flex; align-items: center; gap: 2px; }
.star { color: var(--accent); font-size: 12px; text-shadow: 0 0 4px rgba(224,64,64,0.3); }
.star.empty { color: var(--bg-tag); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(160deg, #0a1018 0%, #111d2b 30%, #0d151f 60%, #080e16 100%);
  border: 1px solid rgba(224,64,64,0.1);
  border-radius: 16px;
  padding: 40px 36px; margin-bottom: 36px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-accent);
}
.page-header::before {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,64,64,0.2), transparent);
}
.page-header h1 { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* ===== DATA TABLE ===== */
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.data-table thead th {
  background: var(--bg-secondary); color: var(--text-secondary);
  font-weight: 700; text-align: left; padding: 10px 14px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
table.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
table.data-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
table.data-table tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(30,45,64,0.5); }
table.data-table tbody tr:hover { background: var(--bg-card); }
table.data-table a { color: var(--accent); }

/* ===== DIFFICULTY ===== */
.diff { font-size: 13px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.diff.d1 { color: var(--success); }
.diff.d2 { color: #f1c40f; }
.diff.d3 { color: var(--accent); }
.diff.d4 { color: var(--danger); }
.diff.d5 { color: #ff0040; text-shadow: 0 0 8px rgba(255,0,64,.4); }

/* ===== STRATEGY STEPS ===== */
.strategy-steps { margin: 16px 0; }
.strategy-steps .step { position: relative; padding-left: 48px; margin-bottom: 16px; }
.strategy-steps .step-num {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--bg-primary); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(224,64,64,0.2);
}
.strategy-steps .step-body { font-size: 14px; color: var(--text-secondary); padding-top: 4px; }
.strategy-steps .step-body strong { color: var(--text-primary); }

/* ===== BUILD CARD ===== */
.build-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all .3s;
}
.build-card:hover { border-color: rgba(224,64,64,0.2); box-shadow: var(--shadow); }
.build-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.build-header h3 { font-size: 18px; font-weight: 800; }
.build-tier { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.tier-s { background: rgba(255,0,64,.12); color: #ff4060; border: 1px solid rgba(255,0,64,.15); }
.tier-a { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(224,64,64,.15); }
.tier-b { background: var(--info-dim); color: var(--info); border: 1px solid rgba(59,130,246,.15); }
.build-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.build-body h4 { font-size: 14px; font-weight: 700; color: var(--accent-bright); margin: 14px 0 6px; }
.build-body ul { margin: 4px 0 10px 18px; font-size: 13px; color: var(--text-secondary); }
.build-body li { margin-bottom: 4px; }
.build-body p { font-size: 13px; color: var(--text-secondary); }
.build-pros-cons { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.build-pros-cons .pros { color: var(--success); flex: 1; }
.build-pros-cons .cons { color: var(--danger); flex: 1; }

/* ===== ROUTE LINE ===== */
.route-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--bg-secondary); border-radius: var(--radius-sm);
  margin: 12px 0; font-size: 13px; border: 1px solid var(--border);
}
.route-node {
  padding: 5px 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; font-weight: 600; color: var(--text-primary); transition: all .2s;
}
.route-node:hover { border-color: var(--accent-dim); }
.route-arrow { color: var(--accent); font-weight: 700; }

/* ===== CONTENT LAYOUT ===== */
.content-layout { display: flex; gap: 28px; }
.content-main { flex: 1; min-width: 0; }
.content-layout .sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 76px; align-self: flex-start;
  max-height: calc(100vh - 80px); overflow-y: auto;
}

/* ===== SECTION NAV ===== */
.section-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 40px 0 20px; padding-top: 24px; border-top: 1px solid var(--border);
}
.nav-btn {
  padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px;
  font-weight: 600; transition: all .25s;
}
.nav-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-dim); color: var(--accent-bright); transform: translateY(-1px); }

/* ===== WALKTHROUGH NAV ===== */
.section-nav-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.nav-prev, .nav-next {
  font-size: 14px; color: var(--accent); text-decoration: none;
  padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px;
  transition: all .25s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-prev:hover, .nav-next:hover {
  background: var(--accent); color: var(--bg-primary); border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(224,64,64,0.3); transform: translateY(-1px);
}

/* ===== SIDEBAR SUBTITLE ===== */
.sidebar-subtitle {
  font-size: 11px; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: 1px; padding: 12px 12px 4px; font-weight: 700;
}

/* ===== SEARCH ===== */
[data-searchable] { transition: opacity .2s; }

/* ===== MENU TOGGLE ===== */
.menu-toggle { display: none; cursor: pointer; font-size: 22px; color: var(--text-primary); }
.navbar-links.mobile-open {
  display: flex !important; flex-direction: column; position: absolute;
  top: 60px; left: 0; right: 0; background: var(--bg-secondary);
  padding: 16px; border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

/* ===== GLOW HIGHLIGHT ===== */
.glow-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FAVICON LINK INLINE ===== */
.link-icon {
  width: 16px; height: 16px; display: inline-block; vertical-align: middle;
}

/* ===== ENTRANCE ANIMATIONS ===== */
.section:nth-child(1) { animation-delay: 0s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
