
:root {
  --gold: #c9a227;
  --gold-light: #e6c860;
  --gold-dark: #8a6d1b;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --text-primary: #e8e6e3;
  --text-secondary: #a09d98;
  --border: #2a2a2a;
  --danger: #c0392b;
  --success: #27ae60;
  --magic: #7d3cff;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* Navigation */
.navbar {
  background: linear-gradient(180deg, #111 0%, var(--bg-dark) 100%);
  border-bottom: 2px solid var(--gold-dark);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(201,162,39,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(201,162,39,0.3);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p { color: var(--text-secondary); }

/* Sections */
.section {
  margin: 3rem 0;
}

.section h2 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-dark);
  display: inline-block;
}

.section h3 {
  color: var(--gold-light);
  margin: 1.5rem 0 0.75rem;
}

.section p, .section li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.section ul, .section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  font-weight: 600;
}

tr:hover { background: rgba(255,255,255,0.03); }

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem;
}

.tag-difficulty-easy { background: rgba(39,174,96,0.2); color: var(--success); }
.tag-difficulty-medium { background: rgba(201,162,39,0.2); color: var(--gold); }
.tag-difficulty-hard { background: rgba(192,57,43,0.2); color: var(--danger); }
.tag-type { background: rgba(125,60,255,0.2); color: var(--magic); }

/* Amazon Section */
.amazon-section {
  background: linear-gradient(135deg, rgba(201,162,39,0.1) 0%, rgba(201,162,39,0.02) 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.amazon-section h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.amazon-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.amazon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(201,162,39,0.4);
  color: #000;
}

/* Disclaimer */
.disclaimer {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold-dark);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}

.disclaimer strong { color: var(--gold); }

/* Footer */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Boss Card Special */
.boss-card {
  border-left: 4px solid var(--danger);
}

.build-card {
  border-left: 4px solid var(--magic);
}

/* Progress path */
.progress-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}

.progress-node {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.progress-arrow {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .navbar { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ===== ADDITIONAL STYLES ===== */

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold-dark);
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: 2px solid var(--gold);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* Collapsible sections */
.collapsible {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.collapsible-header {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.collapsible-header:hover {
  background: var(--bg-card-hover);
}

.collapsible-header h3 {
  margin: 0;
}

.collapsible-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--gold);
}

.collapsible.open .collapsible-icon {
  transform: rotate(180deg);
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 1.5rem;
}

.collapsible.open .collapsible-body {
  max-height: 2000px;
  padding: 0 1.5rem 1.5rem;
}

/* Search box */
.search-box {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  margin: 1rem 0;
}

.search-box::placeholder {
  color: var(--text-secondary);
}

.search-box:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,162,39,0.2);
}

/* Filter tags */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.1);
}

/* Hidden items for filter */
.filter-item.hidden {
  display: none !important;
}

/* Phase indicator */
.phase-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.phase-1 { background: rgba(39,174,96,0.2); color: var(--success); }
.phase-2 { background: rgba(201,162,39,0.2); color: var(--gold); }
.phase-3 { background: rgba(192,57,43,0.2); color: var(--danger); }

/* Damage type colors */
.dmg-physical { color: #e8e6e3; }
.dmg-magic { color: #7d3cff; }
.dmg-fire { color: #e67e22; }
.dmg-lightning { color: #f1c40f; }
.dmg-holy { color: #f5f5dc; }

/* Quick links sidebar concept */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.toc h4 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  margin: 0.4rem 0;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--gold);
}

/* Stat bar visualization */
.stat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.stat-bar-label {
  width: 80px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.6s ease;
}

/* Comparison table */
.compare-table td:first-child {
  font-weight: 600;
  color: var(--gold-light);
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.5s ease forwards;
}

/* Responsive nav improvements */
@media (max-width: 768px) {
  .toc {
    display: none;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 1rem;
    right: 1rem;
  }
}
