/* ===== LEVEL NAV BAR ===== */

.level-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  justify-content: center;
}

.level-nav-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  text-align: center;
}

.level-nav-btn:hover,
.level-nav-btn.active {
  background: var(--accent);
  color: #1a1a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 202, 131, 0.3);
}

@media (max-width: 768px) {
  .level-nav {
    gap: 0.35rem;
  }

  .level-nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }
}

/* ===== ALL SPELLS PAGE ===== */

.spells-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

.spells-level-section {
  margin-bottom: 2rem;
}

.spells-level-section h2 {
  font-size: 1.1rem;
  color: var(--accent);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 0.6rem;
}

.spells-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spells-table th {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.spells-table td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}

.spells-table tr:last-child td {
  border-bottom: none;
}

.spells-table tbody tr {
  transition: background 0.1s;
}

.spells-table tbody tr:hover {
  background: var(--card-bg);
}

.spells-table .spell-name {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.spell-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.spell-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.spells-table .spell-school {
  white-space: nowrap;
}

.spells-table .spell-components {
  white-space: nowrap;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .spells-table {
    font-size: 0.8rem;
  }

  .spells-table th,
  .spells-table td {
    padding: 0.35rem 0.4rem;
  }

  .spells-table .hide-mobile {
    display: none;
  }
}
