/* ══════════════════════════════════════════════════════
   Warcraft Midnight Guide — Stylesheet v2.0
   AAA Gaming Dark Theme — WoW Midnight Vibes
   ══════════════════════════════════════════════════════ */

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

:root {
  --bg:       #06090f;
  --bg2:      #0d1220;
  --bg3:      #111827;
  --bg4:      #1a2236;
  --cyan:     #00b4d8;
  --violet:   #7c3aed;
  --violet2:  #a78bfa;
  --gold:     #f5a623;
  --gold2:    #ffd866;
  --amber:    #f59e0b;
  --green:    #4ade80;
  --red:      #ef4444;
  --orange:   #f97316;
  --blue:     #3b82f6;
  --text:     #e0e6f0;
  --muted:    #8899aa;
  --white:    #ffffff;
  --sidebar-w: 260px;
  --void-purple: #2d1b69;
  --void-blue: #0a1628;
  --void-glow: #6366f1;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

img { max-width: 100%; }

/* ══════════════════════════════════════════════════════
   NAV — Glassmorphism
   ══════════════════════════════════════════════════════ */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(6,9,15,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(245,166,35,.08);
  position: sticky; top: 0; z-index: 1000;
  transition: background .3s;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.3), rgba(124,58,237,.3), transparent);
}

.nav-left {
  display: flex; align-items: center; gap: 10px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo span {
  font-size: 1.15rem; font-weight: 800;
  color: var(--white); letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(245,166,35,.3);
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .88rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  transition: color .2s, text-shadow .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
  border-radius: 1px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); text-shadow: 0 0 12px rgba(245,166,35,.4); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-search {
  display: flex; align-items: center;
  background: rgba(13,18,32,.8);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 0 .8rem;
  height: 36px; width: 220px;
  transition: border-color .3s, box-shadow .3s;
}
.nav-search:focus-within {
  border-color: rgba(245,166,35,.4);
  box-shadow: 0 0 16px rgba(245,166,35,.1);
}
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .85rem;
  width: 100%; font-family: inherit;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search-icon { color: var(--muted); font-size: .85rem; margin-right: .5rem; }

.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   HERO — Full-bleed with artwork background
   ══════════════════════════════════════════════════════ */
.hero {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 120px 3vw 100px;
  position: relative; overflow: hidden; text-align: center;
  width: 100%;
  min-height: 75vh;
  background:
    url('../img/midnight-keyart.jpg') center center / cover no-repeat;
}

/* Dark overlay gradient for readability */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6,9,15,.55) 0%,
      rgba(6,9,15,.35) 30%,
      rgba(6,9,15,.45) 60%,
      rgba(6,9,15,.92) 100%
    ),
    linear-gradient(0deg,
      rgba(6,9,15,.95) 0%,
      transparent 40%
    );
  pointer-events: none; z-index: 1;
}

/* Radial glow accents */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(99,102,241,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(245,166,35,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(124,58,237,.08) 0%, transparent 60%);
  pointer-events: none; z-index: 2;
}

/* Animated particles overlay */
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: 2;
}
.hero-particles span {
  position: absolute;
  display: block;
  width: 2px; height: 2px;
  background: rgba(245,166,35,.6);
  border-radius: 50%;
  animation: particle-float linear infinite;
  box-shadow: 0 0 6px rgba(245,166,35,.4);
}
.hero-particles span:nth-child(odd) {
  background: rgba(167,139,250,.6);
  box-shadow: 0 0 6px rgba(167,139,250,.4);
}

@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

.hero-sub {
  font-size: .85rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(167,139,250,.9);
  margin-bottom: 1.2rem; position: relative; z-index: 10;
  text-shadow: 0 0 20px rgba(124,58,237,.5);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900; color: var(--white);
  letter-spacing: 3px; line-height: 1.1;
  margin-bottom: 1rem; position: relative; z-index: 10;
  text-shadow:
    0 0 30px rgba(245,166,35,.4),
    0 0 60px rgba(245,166,35,.2),
    0 2px 4px rgba(0,0,0,.8);
}
.hero h1 .accent {
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(245,166,35,.6),
    0 0 40px rgba(245,166,35,.3),
    0 0 80px rgba(245,166,35,.15);
}
.hero h1 .accent2 {
  color: var(--violet2);
  text-shadow:
    0 0 20px rgba(167,139,250,.6),
    0 0 40px rgba(167,139,250,.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(224,230,240,.85); max-width: 800px;
  line-height: 1.8; margin-bottom: 2.5rem;
  position: relative; z-index: 10;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.hero-badges {
  display: flex; gap: .7rem; flex-wrap: wrap;
  justify-content: center; position: relative; z-index: 10;
}

/* ══════════════════════════════════════════════════════
   BADGES — Shimmer animation
   ══════════════════════════════════════════════════════ */
.badge {
  font-size: .72rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 999px;
  letter-spacing: .5px; display: inline-block;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: badge-shimmer 3s ease-in-out infinite;
}
@keyframes badge-shimmer {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

.badge-gold   { background: rgba(245,166,35,.15); color: var(--gold); border: 1px solid rgba(245,166,35,.3); box-shadow: 0 0 12px rgba(245,166,35,.1); }
.badge-cyan   { background: rgba(0,180,216,.15); color: var(--cyan); border: 1px solid rgba(0,180,216,.3); box-shadow: 0 0 12px rgba(0,180,216,.1); }
.badge-violet { background: rgba(124,58,237,.15); color: var(--violet2); border: 1px solid rgba(124,58,237,.3); box-shadow: 0 0 12px rgba(124,58,237,.1); }
.badge-green  { background: rgba(22,163,74,.15); color: var(--green); border: 1px solid rgba(22,163,74,.3); box-shadow: 0 0 12px rgba(22,163,74,.1); }
.badge-red    { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.badge-orange { background: rgba(249,115,22,.15); color: var(--orange); border: 1px solid rgba(249,115,22,.3); }
.badge-blue   { background: rgba(59,130,246,.15); color: var(--blue); border: 1px solid rgba(59,130,246,.3); }
.badge-gold::after   { animation-delay: 0s; }
.badge-violet::after { animation-delay: .5s; }
.badge-cyan::after   { animation-delay: 1s; }
.badge-green::after  { animation-delay: 1.5s; }

/* ══════════════════════════════════════════════════════
   SECTION DIVIDER — Decorative element
   ══════════════════════════════════════════════════════ */
.section-divider {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.section-divider::before {
  content: '';
  position: absolute;
  left: 5vw; right: 5vw;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245,166,35,.4) 20%,
    rgba(245,166,35,.6) 50%,
    rgba(245,166,35,.4) 80%,
    transparent
  );
}
.section-divider::after {
  content: '';
  width: 12px; height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(245,166,35,.5), 0 0 32px rgba(245,166,35,.2);
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════
   SECTIONS — With background artwork
   ══════════════════════════════════════════════════════ */
.section {
  padding: 4rem 3vw 5rem;
  max-width: 100%; margin: 0; width: 100%;
  position: relative;
}

/* Professions section — warm amber tint */
.section-professions {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,18,32,.97) 10%, rgba(13,18,32,.95) 90%, var(--bg) 100%);
}
.section-professions::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(245,166,35,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(245,166,35,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Classes section — void purple tint with background image */
.section-classes {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,18,32,.4) 5%, rgba(13,18,32,.4) 95%, var(--bg) 100%),
    url('../img/midnight-classes-bg.jpg') center center / cover no-repeat fixed;
}
.section-classes::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6,9,15,.88) 8%, rgba(6,9,15,.85) 92%, var(--bg) 100%);
  pointer-events: none;
}
.section-classes::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(99,102,241,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(124,58,237,.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-title {
  font-size: .78rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
  position: relative; z-index: 5;
  text-shadow: 0 0 16px rgba(245,166,35,.3);
}
.section-heading {
  font-size: 2rem; font-weight: 800;
  color: var(--white); margin-bottom: 2rem;
  position: relative; z-index: 5;
  text-shadow:
    0 0 20px rgba(255,255,255,.1),
    0 2px 4px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════════════════
   CARD GRID — Enhanced glassmorphism cards
   ══════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  position: relative; z-index: 5;
}
.card-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: linear-gradient(135deg, rgba(13,18,32,.9) 0%, rgba(17,24,39,.85) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .4s ease, border-color .3s ease, background .3s ease;
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* Card inner glow on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245,166,35,.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,166,35,.35);
  box-shadow:
    0 20px 60px rgba(245,166,35,.12),
    0 0 30px rgba(245,166,35,.05),
    inset 0 1px 0 rgba(245,166,35,.1);
}

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.2);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245,166,35,.08);
  transition: box-shadow .3s ease;
}
.card:hover .card-icon {
  box-shadow: 0 0 20px rgba(245,166,35,.15);
}
.card-icon img.icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  image-rendering: auto;
  filter: brightness(1.05) saturate(1.1);
  transition: filter .3s ease, transform .3s ease;
}
.card:hover .card-icon img.icon-img {
  filter: brightness(1.25) saturate(1.3);
  transform: scale(1.1);
}
.card-icon.icon-class {
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.2);
  box-shadow: 0 0 12px rgba(124,58,237,.08);
}
.card:hover .card-icon.icon-class {
  box-shadow: 0 0 20px rgba(124,58,237,.15);
}

.card-name {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: .4rem;
  transition: text-shadow .3s;
}
.card:hover .card-name {
  text-shadow: 0 0 12px rgba(245,166,35,.3);
}
.card-desc {
  font-size: .85rem; color: var(--muted);
  line-height: 1.6; flex: 1;
}
.card-arrow {
  font-size: .85rem; font-weight: 700;
  color: var(--gold); margin-top: .8rem;
  transition: gap .3s, text-shadow .3s;
  display: flex; align-items: center; gap: .3rem;
}
.card:hover .card-arrow {
  gap: .7rem;
  text-shadow: 0 0 12px rgba(245,166,35,.4);
}

.card.card-class::before {
  background: linear-gradient(180deg, rgba(124,58,237,.06) 0%, transparent 100%);
}
.card.card-class:hover {
  border-color: rgba(124,58,237,.35);
  box-shadow:
    0 20px 60px rgba(124,58,237,.12),
    0 0 30px rgba(124,58,237,.05),
    inset 0 1px 0 rgba(124,58,237,.1);
}
.card.card-class:hover .card-name {
  text-shadow: 0 0 12px rgba(124,58,237,.3);
}
.card.card-class .card-arrow { color: var(--violet2); }
.card.card-class:hover .card-arrow {
  text-shadow: 0 0 12px rgba(167,139,250,.4);
}

/* ══════════════════════════════════════════════════════
   PAGE LAYOUT (Sidebar + Content) — Sub-pages
   ══════════════════════════════════════════════════════ */
.page-layout {
  display: flex;
  max-width: 100%;
  margin: 0;
  width: 100%;
  padding: 2rem 3vw 4rem;
  gap: 2rem;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 1rem;
}
.sidebar-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
  text-shadow: 0 0 10px rgba(245,166,35,.2);
}
.sidebar-nav {
  list-style: none; display: flex; flex-direction: column;
  gap: .15rem;
}
.sidebar-nav a {
  display: block;
  padding: .45rem .8rem;
  border-radius: 8px;
  font-size: .85rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: all .15s;
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.04);
}
.sidebar-nav a.active {
  color: var(--gold);
  background: rgba(245,166,35,.06);
  border-left-color: var(--gold);
  text-shadow: 0 0 8px rgba(245,166,35,.2);
}
.sidebar-divider {
  height: 1px; background: rgba(255,255,255,.06);
  margin: .6rem 0;
}

/* ── CONTENT AREA ── */
.content {
  flex: 1; min-width: 0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted);
  margin-bottom: 2rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ══════════════════════════════════════════════════════
   CONTENT TYPOGRAPHY — Gold accents
   ══════════════════════════════════════════════════════ */
.content h2 {
  font-size: 1.6rem; font-weight: 800;
  color: var(--white); margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-shadow: 0 0 12px rgba(255,255,255,.05);
}
.content h2:first-of-type { margin-top: 0; }

.content h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin: 1.8rem 0 .8rem;
}
.content h4 {
  font-size: 1rem; font-weight: 600;
  color: var(--gold); margin: 1.2rem 0 .6rem;
  text-shadow: 0 0 8px rgba(245,166,35,.15);
}
.content p {
  font-size: .93rem; color: var(--text);
  line-height: 1.8; margin-bottom: 1rem;
}
.content ul, .content ol {
  margin: .5rem 0 1rem 1.2rem;
  font-size: .93rem; line-height: 1.8;
}
.content li { margin-bottom: .3rem; }

/* ══════════════════════════════════════════════════════
   LEVEL RANGE BLOCKS
   ══════════════════════════════════════════════════════ */
.level-block {
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.level-header {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.level-badge {
  font-size: .85rem; font-weight: 800;
  padding: .3rem .8rem; border-radius: 8px;
  white-space: nowrap;
}
.level-1-20  { background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.25); }
.level-20-40 { background: rgba(0,180,216,.12); color: var(--cyan); border: 1px solid rgba(0,180,216,.25); }
.level-40-60 { background: rgba(245,166,35,.12); color: var(--gold); border: 1px solid rgba(245,166,35,.25); }
.level-60-80 { background: rgba(249,115,22,.12); color: var(--orange); border: 1px solid rgba(249,115,22,.25); }
.level-80-100 { background: rgba(239,68,68,.12); color: var(--red); border: 1px solid rgba(239,68,68,.25); }

.level-title {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
}
.level-block ul {
  margin: .3rem 0 0 1.2rem;
  font-size: .9rem; line-height: 1.8;
}
.level-block .recipe {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem 0;
  font-size: .9rem;
}
.recipe-name { color: var(--white); font-weight: 600; }
.recipe-mats { color: var(--muted); }
.recipe-count { color: var(--gold); font-weight: 700; font-size: .82rem; }

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
}
table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem;
}
thead {
  background: var(--bg3);
}
th {
  text-align: left; padding: .8rem 1rem;
  font-weight: 700; color: var(--gold);
  font-size: .78rem; letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
td {
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.mat-icon { margin-right: .4rem; }

/* ══════════════════════════════════════════════════════
   INFO BOX
   ══════════════════════════════════════════════════════ */
.info-box {
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  backdrop-filter: blur(4px);
}
.info-box.tip { border-left-color: var(--green); }
.info-box.warning { border-left-color: var(--orange); }
.info-box.danger { border-left-color: var(--red); }
.info-box-title {
  font-size: .85rem; font-weight: 700;
  color: var(--white); margin-bottom: .4rem;
  display: flex; align-items: center; gap: .5rem;
}
.info-box p { font-size: .88rem; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   SPEC CARDS (class pages)
   ══════════════════════════════════════════════════════ */
.spec-card {
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: border-color .3s, box-shadow .3s;
  backdrop-filter: blur(4px);
}
.spec-card:hover {
  border-color: rgba(245,166,35,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.spec-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.spec-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.spec-icon.tank { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); }
.spec-icon.dps  { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); }
.spec-icon.heal { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.25); }

.spec-name { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.spec-role {
  font-size: .75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.spec-role.tank { color: var(--blue); }
.spec-role.dps  { color: var(--red); }
.spec-role.heal { color: var(--green); }

.spec-card p { font-size: .9rem; color: var(--text); line-height: 1.7; }

.ability-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .6rem; margin: 1rem 0;
  list-style: none;
}
.ability-item {
  background: var(--bg3);
  border-radius: 8px;
  padding: .6rem .8rem;
  font-size: .85rem;
  display: flex; align-items: center; gap: .5rem;
}
.ability-icon { font-size: 1rem; }
.ability-name { font-weight: 600; color: var(--white); }

/* ══════════════════════════════════════════════════════
   TALENT GRID
   ══════════════════════════════════════════════════════ */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem; margin: 1rem 0;
}
.talent-node {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .8rem;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.talent-node.selected {
  border-color: var(--gold);
  background: rgba(245,166,35,.06);
  box-shadow: 0 0 12px rgba(245,166,35,.1);
}
.talent-node .t-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.talent-node .t-name {
  font-size: .75rem; font-weight: 600;
  color: var(--white); line-height: 1.3;
}
.talent-node .t-pts {
  font-size: .65rem; color: var(--gold);
  font-weight: 700; margin-top: .2rem;
}

/* ══════════════════════════════════════════════════════
   SEARCH RESULTS OVERLAY
   ══════════════════════════════════════════════════════ */
.search-overlay {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(6,9,15,.95);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 2rem 5vw;
  overflow-y: auto;
}
.search-overlay.active { display: block; }
.search-results-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 1rem;
}
.search-result-item {
  display: block;
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: .6rem;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-result-item:hover {
  border-color: rgba(245,166,35,.3);
  box-shadow: 0 4px 20px rgba(245,166,35,.08);
}
.search-result-item .sr-name {
  font-weight: 700; color: var(--white); font-size: .95rem;
}
.search-result-item .sr-type {
  font-size: .75rem; color: var(--gold);
  font-weight: 600; margin-left: .5rem;
}
.search-result-item .sr-desc {
  font-size: .82rem; color: var(--muted);
  margin-top: .2rem;
}

/* ══════════════════════════════════════════════════════
   GUIDE STEPS — Come Procedere
   ══════════════════════════════════════════════════════ */
.guide-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.guide-step { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--bg2); border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.07); transition: border-color .3s; }
.guide-step:hover { border-color: rgba(245,166,35,.3); }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--amber)); color: #000; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .4rem; }
.step-content p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   FOOTER — Base styles (layout overridden below)
   ══════════════════════════════════════════════════════ */
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-logo {
  display: flex; align-items: center; gap: .6rem;
  position: relative; z-index: 1;
}
.footer-logo svg {
  width: 24px; height: 24px;
  filter: drop-shadow(0 0 8px rgba(245,166,35,.5));
}
.footer-logo span {
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 12px rgba(245,166,35,.2);
}

/* ══════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .page-layout { padding: 1.5rem 4vw 3rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-search { width: 160px; }
  .hero { min-height: 60vh; padding: 80px 4vw 60px; }
  .section { padding: 3rem 4vw 4rem; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 5vw 48px; min-height: 55vh; }
  .hero h1 { letter-spacing: 0; font-size: clamp(2rem, 8vw, 3rem); }
  .card-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .section { padding: 2rem 4vw 3rem; }
  .level-block { padding: 1rem; }
  .spec-card { padding: 1.2rem; }
  .ability-list { grid-template-columns: 1fr; }
  .talent-grid { grid-template-columns: repeat(3, 1fr); }
  .section-divider { height: 60px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(6,9,15,.98);
  backdrop-filter: blur(16px);
  z-index: 998;
  padding: 2rem;
  flex-direction: column; gap: 1rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   MEGA DROPDOWN MENUS
   ══════════════════════════════════════════════════════ */

/* Dropdown wrapper on the li */
.nav-links li.has-dropdown {
  position: relative;
}
.nav-links li.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.nav-links li.has-dropdown > a .dd-arrow {
  font-size: .6rem;
  transition: transform .3s;
  display: inline-block;
}
.nav-links li.has-dropdown:hover > a .dd-arrow,
.nav-links li.has-dropdown.open > a .dd-arrow {
  transform: rotate(180deg);
}

/* The mega panel */
.mega-dropdown {
  position: fixed;
  left: 0;
  top: 64px;
  width: 100vw;
  background: var(--bg2);
  border-bottom: 1px solid rgba(245,166,35,.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(245,166,35,.05);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  padding: 1.5rem 5vw 2rem;
}

/* Show on hover (desktop) or when .open class is toggled (mobile) */
.nav-links li.has-dropdown:hover > .mega-dropdown,
.nav-links li.has-dropdown.open > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Invisible bridge so mouse can travel from link to dropdown */
.nav-links li.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* ── Classes Mega Grid ── */
.mega-classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem .8rem;
  max-width: 1200px;
  margin: 0 auto;
}
.mega-class-item {
  display: flex;
  flex-direction: column;
  padding: .7rem .9rem;
  border-radius: 10px;
  transition: background .2s;
  text-decoration: none;
}
.mega-class-item:hover {
  background: rgba(255,255,255,.04);
}
.mega-class-name {
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: text-shadow .2s;
  display: inline-block;
}
.mega-class-name:hover {
  text-shadow: 0 0 10px currentColor;
}
.mega-class-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  margin-top: .3rem;
}
.mega-spec-link {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.mega-spec-link:hover {
  color: var(--gold2);
}
.mega-spec-role {
  font-size: .68rem;
  margin-right: .1rem;
}

/* ── Professions Mega Grid ── */
.mega-prof-panel {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mega-prof-group {
  display: flex;
  flex-direction: column;
}
.mega-prof-group-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(245,166,35,.15);
  text-shadow: 0 0 8px rgba(245,166,35,.2);
}
.mega-prof-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.mega-prof-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mega-prof-link:hover {
  background: rgba(245,166,35,.08);
  color: var(--gold);
}

/* ── Mobile dropdown overrides ── */
.mobile-menu .mobile-dd-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.mobile-menu .mobile-dd-toggle .dd-arrow {
  font-size: .7rem;
  transition: transform .3s;
}
.mobile-menu .mobile-dd-toggle.open .dd-arrow {
  transform: rotate(180deg);
}
.mobile-menu .mobile-dd-content {
  display: none;
  flex-direction: column;
  padding: .5rem 0 .5rem 1rem;
  border-left: 2px solid rgba(245,166,35,.15);
  margin-bottom: .5rem;
}
.mobile-menu .mobile-dd-content.open {
  display: flex;
}
.mobile-menu .mobile-dd-content a {
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: none;
}
.mobile-menu .mobile-dd-class {
  font-weight: 600;
  margin-top: .4rem;
}
.mobile-menu .mobile-dd-spec {
  font-size: .82rem;
  color: var(--muted);
  padding: .2rem 0 .2rem .8rem;
}
.mobile-menu .mobile-dd-spec:hover {
  color: var(--gold);
}
.mobile-menu .mobile-dd-group-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: .6rem 0 .2rem;
  border-bottom: none;
}

/* ── Mega dropdown responsive ── */
@media (max-width: 900px) {
  .mega-dropdown {
    display: none !important;
  }
}
@media (min-width: 901px) {
  .mega-classes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .mega-classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-prof-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) both;
}
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }

/* Hero-specific entrance animations */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-sub { animation: heroFadeIn .8s cubic-bezier(.16,1,.3,1) .2s both; }
.hero h1  { animation: heroFadeIn .8s cubic-bezier(.16,1,.3,1) .4s both; }
.hero-tagline { animation: heroFadeIn .8s cubic-bezier(.16,1,.3,1) .6s both; }
.hero-badges  { animation: heroFadeIn .8s cubic-bezier(.16,1,.3,1) .8s both; }

/* Subtle pulse for gold accent */
@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(245,166,35,.6), 0 0 40px rgba(245,166,35,.3), 0 0 80px rgba(245,166,35,.15); }
  50%      { text-shadow: 0 0 30px rgba(245,166,35,.8), 0 0 60px rgba(245,166,35,.4), 0 0 100px rgba(245,166,35,.2); }
}
.hero h1 .accent {
  animation: goldPulse 4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   BUILD / PAWN / COPY
   ══════════════════════════════════════════════════════ */
.copy-btn {
  background: linear-gradient(135deg, var(--gold), #e6950a);
  color: #000; border: none; padding: .4rem 1rem;
  border-radius: 8px; cursor: pointer; font-weight: 700;
  font-size: .85rem; transition: all .2s;
  box-shadow: 0 2px 8px rgba(245,166,35,.2);
}
.copy-btn:hover {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 4px 16px rgba(245,166,35,.3);
  transform: translateY(-1px);
}
.build-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.build-table th { background: var(--bg3); padding: .6rem; text-align: left; font-size: .8rem; color: var(--gold); }
.build-table td { padding: .6rem; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
.build-string { font-family: monospace; font-size: .75rem; word-break: break-all; color: var(--cyan); background: var(--bg); padding: .3rem .5rem; border-radius: 4px; display: block; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-priority { background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85)); padding: 1rem; border-radius: 8px; margin: 1rem 0; border-left: 3px solid var(--gold); }
.pawn-string { font-family: monospace; font-size: .75rem; color: var(--green); background: var(--bg); padding: .5rem; border-radius: 4px; word-break: break-all; }

/* ══════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bg3), var(--bg4));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--bg4); }

/* ══════════════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════════════ */
::selection {
  background: rgba(245,166,35,.3);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════
   CLASS INDEX PAGE — Large cards with class colors
   ══════════════════════════════════════════════════════ */
.card-class-index {
  flex-direction: row !important;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .4s ease, border-color .3s ease;
}
.card-class-index:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.35);
  box-shadow:
    0 20px 60px rgba(124,58,237,.12),
    0 0 30px rgba(124,58,237,.05),
    inset 0 1px 0 rgba(124,58,237,.1);
}
.card-class-index::before {
  background: linear-gradient(180deg, rgba(124,58,237,.06) 0%, transparent 100%) !important;
}

.card-icon-large {
  width: 72px; height: 72px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.2);
  box-shadow: 0 0 12px rgba(124,58,237,.08);
  transition: box-shadow .3s ease;
}
.card-class-index:hover .card-icon-large {
  box-shadow: 0 0 20px rgba(124,58,237,.2);
}
.card-icon-large img.icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: brightness(1.05) saturate(1.1);
  transition: filter .3s ease, transform .3s ease;
}
.card-class-index:hover .card-icon-large img.icon-img {
  filter: brightness(1.25) saturate(1.3);
  transform: scale(1.1);
}

.card-body {
  flex: 1; min-width: 0;
}

.spec-badges {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-top: .6rem; margin-bottom: .4rem;
}
.spec-badge {
  font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.spec-badge.spec-tank {
  background: rgba(59,130,246,.15); color: #3b82f6;
  border: 1px solid rgba(59,130,246,.3);
}
.spec-badge.spec-dps {
  background: rgba(239,68,68,.15); color: #ef4444;
  border: 1px solid rgba(239,68,68,.3);
}
.spec-badge.spec-healer {
  background: rgba(74,222,128,.15); color: #4ade80;
  border: 1px solid rgba(74,222,128,.3);
}

.card-class-index .card-arrow {
  color: var(--violet2);
}
.card-class-index:hover .card-arrow {
  text-shadow: 0 0 12px rgba(167,139,250,.4);
}

/* Filter buttons */
.filter-btn {
  background: rgba(13,18,32,.8);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  padding: .5rem 1.2rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-btn:hover {
  border-color: rgba(245,166,35,.3);
  color: var(--white);
  background: rgba(245,166,35,.08);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), #e6950a);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(245,166,35,.25);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   PROFESSIONS INDEX PAGE — Cards with type badges
   ══════════════════════════════════════════════════════ */
.prof-index-card {
  flex-direction: row !important;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
}
.prof-index-card .card-icon-large {
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.2);
  box-shadow: 0 0 12px rgba(245,166,35,.08);
}
.prof-index-card:hover .card-icon-large {
  box-shadow: 0 0 20px rgba(245,166,35,.2);
}

.prof-type-badges {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-top: .6rem; margin-bottom: .4rem;
}
.prof-type-badge {
  font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.prof-type-badge.prof-type-crafting {
  background: rgba(245,166,35,.15); color: #f5a623;
  border: 1px solid rgba(245,166,35,.3);
}
.prof-type-badge.prof-type-raccolta {
  background: rgba(74,222,128,.15); color: #4ade80;
  border: 1px solid rgba(74,222,128,.3);
}
.prof-type-badge.prof-type-secondaria {
  background: rgba(0,180,216,.15); color: #00b4d8;
  border: 1px solid rgba(0,180,216,.3);
}

/* ══════════════════════════════════════════════════════
   NEWS SECTION — Wowhead feed
   ══════════════════════════════════════════════════════ */
.section-news {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,18,32,.97) 10%, rgba(13,18,32,.95) 90%, var(--bg) 100%);
}
.section-news::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(245,166,35,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(124,58,237,.03) 0%, transparent 60%);
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  position: relative; z-index: 5;
}

.news-card {
  background: linear-gradient(135deg, rgba(13,18,32,.9) 0%, rgba(17,24,39,.85) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  gap: .6rem;
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s ease, box-shadow .4s ease, border-color .3s ease;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(245,166,35,.04) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,.3);
  box-shadow:
    0 16px 48px rgba(245,166,35,.1),
    0 0 20px rgba(245,166,35,.04);
}

.news-category {
  align-self: flex-start;
}

.news-title {
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  transition: text-shadow .3s;
}
.news-card:hover .news-title {
  text-shadow: 0 0 12px rgba(245,166,35,.2);
}

.news-meta {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; color: var(--muted);
  margin-top: auto;
}
.news-source {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 640px) {
  .card-class-index,
  .prof-index-card {
    flex-direction: column !important;
  }
  .card-icon-large {
    width: 56px; height: 56px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   SIMULATORE PvE — SimC Integration
   ══════════════════════════════════════════════════════ */

/* Panels */
.simc-panel {
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.8rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

/* Labels */
.simc-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .6rem;
  text-shadow: 0 0 8px rgba(245,166,35,.15);
}

/* Textarea */
.simc-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: var(--cyan);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: .85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.simc-textarea::placeholder {
  color: var(--muted);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.simc-textarea:focus {
  border-color: rgba(245,166,35,.4);
  box-shadow: 0 0 20px rgba(245,166,35,.08), inset 0 0 30px rgba(245,166,35,.03);
}

/* Action buttons row */
.simc-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.simc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
}
.simc-btn-icon {
  font-size: 1.1rem;
}
.simc-btn-primary {
  background: linear-gradient(135deg, var(--gold), #e6950a);
  color: #000;
  box-shadow: 0 4px 16px rgba(245,166,35,.25);
}
.simc-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 6px 24px rgba(245,166,35,.35);
  transform: translateY(-2px);
}
.simc-btn-secondary {
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(124,58,237,.25);
}
.simc-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--violet2), var(--violet));
  box-shadow: 0 6px 24px rgba(124,58,237,.35);
  transform: translateY(-2px);
}
.simc-btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,180,216,.3);
  box-shadow: none;
}
.simc-btn-outline:hover {
  background: rgba(0,180,216,.08);
  border-color: rgba(0,180,216,.5);
  box-shadow: 0 0 16px rgba(0,180,216,.15);
  transform: translateY(-1px);
}
.simc-btn-disabled {
  background: var(--bg3);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}
.simc-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* Progress Bar */
.simc-progress-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.simc-progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
}
.simc-progress-circle svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}
.simc-progress-circle .track {
  fill: none;
  stroke: var(--bg);
  stroke-width: 6;
}
.simc-progress-circle .fill {
  fill: none;
  stroke: url(#progressGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset .4s ease;
  filter: drop-shadow(0 0 8px rgba(245,166,35,.5));
}
.simc-progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(245,166,35,.4);
}
.simc-progress-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.simc-progress-text {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.simc-progress-dots {
  display: flex;
  gap: .4rem;
}
.simc-progress-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.simc-progress-dots span:nth-child(2) { animation-delay: .2s; }
.simc-progress-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: .2; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1.2); }
}
/* Outer glow ring animation */
.simc-progress-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  animation: ringRotate 2s linear infinite;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* DPS Result Display */
.simc-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.simc-dps-display {
  text-align: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,166,35,.06), transparent);
  border-radius: 16px;
  border: 1px solid rgba(245,166,35,.15);
  margin-bottom: 1.5rem;
}
.simc-dps-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.simc-dps-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 30px rgba(245,166,35,.5),
    0 0 60px rgba(245,166,35,.25),
    0 0 100px rgba(245,166,35,.1);
  line-height: 1.1;
  letter-spacing: 2px;
  animation: goldPulse 4s ease-in-out infinite;
}

/* Stat Weight Bars */
.simc-stat-weights {
  margin-top: 1.5rem;
}
.simc-stat-weights h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(245,166,35,.15);
}
.simc-stat-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem;
}
.simc-stat-name {
  width: 90px;
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.simc-stat-track {
  flex: 1;
  height: 10px;
  background: var(--bg);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.simc-stat-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .8s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 8px currentColor;
}
.simc-stat-val {
  width: 55px;
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Consolas', 'Monaco', monospace;
}

/* Pawn String Box */
.simc-pawn-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
}
.simc-pawn-box h4 {
  margin-top: 0;
  margin-bottom: .8rem;
}
.simc-pawn-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.simc-pawn-row .pawn-string {
  flex: 1;
  min-width: 200px;
}

/* Report Link */
.simc-report-link {
  margin-top: 1rem;
  text-align: center;
}

/* ── Top Gear Results ── */
.topgear-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.topgear-results h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(245,166,35,.15);
}
.topgear-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.topgear-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .2s, box-shadow .2s;
}
.topgear-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* Verdict colors */
.topgear-equip {
  border-left: 4px solid var(--green);
}
.topgear-equip:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(74,222,128,.1); }
.topgear-keep {
  border-left: 4px solid var(--amber);
}
.topgear-keep:hover { border-color: var(--amber); box-shadow: 0 4px 20px rgba(245,158,11,.1); }
.topgear-discard {
  border-left: 4px solid var(--red);
}
.topgear-discard:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(239,68,68,.1); }

.topgear-rank {
  font-size: .85rem;
  font-weight: 800;
  color: var(--gold);
  min-width: 30px;
}
.topgear-info {
  flex: 1;
  min-width: 0;
}
.topgear-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.topgear-slot {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.topgear-dps {
  text-align: right;
  flex-shrink: 0;
}
.topgear-diff {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Consolas', 'Monaco', monospace;
}
.topgear-equip .topgear-diff { color: var(--green); }
.topgear-keep .topgear-diff  { color: var(--amber); }
.topgear-discard .topgear-diff { color: var(--red); }

.topgear-verdict {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.topgear-equip .topgear-verdict { color: var(--green); }
.topgear-keep .topgear-verdict  { color: var(--amber); }
.topgear-discard .topgear-verdict { color: var(--red); }

/* ── Battle.net Card ── */
.simc-bnet-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(13,18,32,.9), rgba(17,24,39,.85));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.simc-bnet-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.2);
  color: var(--violet2);
  flex-shrink: 0;
}
.simc-bnet-content {
  flex: 1;
  min-width: 200px;
}
.simc-bnet-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .4rem;
}
.simc-bnet-content p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Simulatore Mobile ── */
@media (max-width: 900px) {
  .simc-bnet-card {
    flex-direction: column;
    text-align: center;
  }
  .simc-stat-name {
    width: 70px;
    font-size: .75rem;
  }
  .simc-stat-val {
    width: 45px;
    font-size: .75rem;
  }
}
@media (max-width: 640px) {
  .simc-panel {
    padding: 1.2rem;
  }
  .simc-actions {
    flex-direction: column;
  }
  .simc-btn {
    width: 100%;
    justify-content: center;
  }
  .topgear-item {
    flex-wrap: wrap;
  }
  .topgear-dps {
    width: 100%;
    text-align: left;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .simc-pawn-row {
    flex-direction: column;
  }
  .simc-pawn-row .copy-btn {
    width: 100%;
  }
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.gallery-img:hover {
  transform: scale(1.03);
  border-color: rgba(245,166,35,.4);
  box-shadow: 0 8px 30px rgba(245,166,35,.2);
}

/* ── VIDEO PLAYER ── */
.trailer-wrapper {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.video-player {
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  width: 100%;
  max-width: 720px;
}
.video-player:hover { transform: scale(1.02); }
.video-thumb {
  position: relative; cursor: pointer;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; background: rgba(245,166,35,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 25px rgba(245,166,35,.5);
  transition: transform .3s, box-shadow .3s;
}
.video-thumb:hover .video-play { transform: translate(-50%,-50%) scale(1.15); }
.video-play span { font-size: 1.8rem; margin-left: 4px; color: #000; }
.video-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff; font-weight: 700; font-size: 1rem;
}
.video-thumb iframe {
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
}
@media (max-width: 640px) {
  .video-player { max-width: 100%; }
  .video-play { width: 52px; height: 52px; }
  .video-play span { font-size: 1.3rem; }
}

/* ══════════════════════════════════════════════════════
   NEWS CARDS — Category-colored left borders
   ══════════════════════════════════════════════════════ */
.news-card.news-cat-raid {
  border-left: 4px solid var(--red);
}
.news-card.news-cat-hotfix {
  border-left: 4px solid var(--orange);
}
.news-card.news-cat-rankings {
  border-left: 4px solid var(--violet2);
}
.news-card.news-cat-bug {
  border-left: 4px solid var(--gold);
}
.news-card.news-cat-pvp {
  border-left: 4px solid var(--cyan);
}
.news-card.news-cat-guide {
  border-left: 4px solid var(--green);
}

/* "Vedi tutte le news" link */
.news-all-link {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}
.btn-wowhead-news {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--gold);
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.25);
  text-decoration: none;
  transition: all .25s ease;
}
.btn-wowhead-news:hover {
  background: rgba(245,166,35,.15);
  border-color: rgba(245,166,35,.5);
  box-shadow: 0 0 20px rgba(245,166,35,.15);
  color: var(--gold2);
  transform: translateY(-2px);
}

/* News grid — equal height cards */
.news-title {
  flex: 1;
}

/* ══════════════════════════════════════════════════════
   STRUMENTI UTILI — Tools section
   ══════════════════════════════════════════════════════ */
.section-tools {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,18,32,.97) 10%, rgba(13,18,32,.95) 90%, var(--bg) 100%);
}
.section-tools::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(0,180,216,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(245,166,35,.04) 0%, transparent 60%);
  pointer-events: none;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  position: relative;
  z-index: 5;
}

.tool-card {
  background: linear-gradient(135deg, rgba(13,18,32,.9) 0%, rgba(17,24,39,.85) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s ease, box-shadow .4s ease, border-color .3s ease;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0,180,216,.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,180,216,.35);
  box-shadow:
    0 20px 60px rgba(0,180,216,.1),
    0 0 30px rgba(0,180,216,.04);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: rgba(0,180,216,.08);
  border: 1px solid rgba(0,180,216,.2);
  box-shadow: 0 0 12px rgba(0,180,216,.08);
  transition: box-shadow .3s ease;
}
.tool-card:hover .tool-icon {
  box-shadow: 0 0 20px rgba(0,180,216,.2);
}
.tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
  transition: text-shadow .3s;
}
.tool-card:hover .tool-name {
  text-shadow: 0 0 12px rgba(0,180,216,.3);
}
.tool-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }
  .tool-card {
    padding: 1rem;
  }
  .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}
@media (max-width: 400px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   FOOTER — Redesigned with columns
   ══════════════════════════════════════════════════════ */
footer {
  position: relative;
  border-top: 1px solid rgba(245,166,35,.1);
  padding: 3rem 5vw 1.5rem;
  overflow: hidden;
  display: block;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(245,166,35,.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: .8rem;
}

.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  text-shadow: 0 0 8px rgba(245,166,35,.2);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.footer-links li a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links li a:hover {
  color: var(--gold);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.footer-bottom p {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .3rem;
}
.footer-credits {
  font-size: .72rem !important;
  color: var(--muted);
}
.footer-credits a {
  color: var(--gold);
  text-decoration: none;
}
.footer-credits a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  footer {
    padding: 2rem 5vw 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════
   ADDITIONAL MOBILE FIXES
   ══════════════════════════════════════════════════════ */

/* Ensure cards fill equal space in grid */
.card-grid {
  display: grid;
}
.card {
  height: 100%;
}

/* Prevent horizontal overflow on all screens */
body {
  overflow-x: hidden;
}
.hero, .section, footer {
  max-width: 100vw;
}

/* Mega dropdown mobile improvements */
@media (max-width: 900px) {
  .mobile-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu .mobile-dd-content {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Fix news grid on smaller tablets */
@media (max-width: 740px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   HOME LAYOUT — 2 colonne (contenuto + sidebar)
   ══════════════════════════════════════════════════════ */
.home-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  align-items: flex-start;
}
.home-layout > div:first-child { flex: 1; min-width: 0; }
.home-layout > aside { width: 340px; flex-shrink: 0; position: sticky; top: 80px; }

@media (max-width: 1024px) {
  .home-layout { flex-direction: column; padding: 1.5rem; }
  .home-layout > aside { width: 100%; position: static; }
}

/* ══════════════════════════════════════════════════════
   TALENT CALCULATOR — Custom Component
   ══════════════════════════════════════════════════════ */

.tc-container {
  position: relative;
  background: linear-gradient(180deg, #0a0f1a 0%, #0d1220 50%, #0a0e18 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: visible;
}

/* Loading */
.tc-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem; gap: 1rem;
  color: var(--muted); font-size: .95rem;
}
.tc-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(245,166,35,.15);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  animation: tc-spin 1s linear infinite;
}
@keyframes tc-spin { to { transform: rotate(360deg); } }

/* Header */
.tc-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tc-title {
  display: flex; align-items: baseline; gap: .6rem;
  border-left: 3px solid var(--gold);
  padding-left: .75rem;
}
.tc-class-name {
  font-size: 1.2rem; font-weight: 800;
  text-shadow: 0 0 16px currentColor;
}
.tc-spec-name {
  font-size: 1rem; font-weight: 500;
  color: var(--muted);
}

.tc-counters {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.tc-counter {
  font-size: .82rem; color: var(--muted);
  background: rgba(255,255,255,.04);
  padding: .3rem .7rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.tc-counter strong {
  color: var(--gold); font-weight: 700;
}
.tc-counter-total strong {
  color: var(--cyan);
}

.tc-actions {
  display: flex; gap: .5rem;
}
.tc-btn {
  padding: .4rem 1rem; border-radius: 6px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(255,255,255,.1);
  font-family: inherit; transition: all .2s;
}
.tc-btn-reset {
  background: rgba(239,68,68,.1);
  color: #ef4444;
}
.tc-btn-reset:hover {
  background: rgba(239,68,68,.2);
  border-color: rgba(239,68,68,.3);
}
.tc-btn-copy {
  background: rgba(245,166,35,.1);
  color: var(--gold);
}
.tc-btn-copy:hover {
  background: rgba(245,166,35,.2);
  border-color: rgba(245,166,35,.3);
}

/* Tree Layout */
.tc-tree-wrap {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: .5rem;
  align-items: flex-start;
}

.tc-tree-section {
  flex-shrink: 0;
}

.tc-section-title {
  font-size: .85rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: .75rem;
  padding-left: .5rem;
}

.tc-divider {
  width: 1px;
  min-height: 200px;
  background: linear-gradient(180deg, transparent, rgba(245,166,35,.3), rgba(124,58,237,.3), transparent);
  margin: 2rem .5rem;
  flex-shrink: 0;
}

/* Grid (contains nodes and SVG lines) */
.tc-grid {
  position: relative;
  margin: 0 auto;
}

/* Connection Lines (SVG) */
.tc-line {
  stroke: rgba(255,255,255,.1);
  stroke-width: 2;
  transition: stroke .3s, stroke-width .3s;
}
.tc-line-partial {
  stroke: rgba(245,166,35,.3);
  stroke-width: 2;
}
.tc-line-active {
  stroke: rgba(245,166,35,.7);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(245,166,35,.4));
}

/* Nodes */
.tc-node {
  position: absolute;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(13,18,32,.9);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tc-node:hover {
  transform: scale(1.15);
  z-index: 10;
}
.tc-node.tc-node-choice {
  border-radius: 50%;
}

/* Node Icon */
.tc-node-icon {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  transition: filter .2s;
}

/* Name Label (fallback/overlay) */
.tc-node-label {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: .55rem; font-weight: 600;
  color: rgba(224,230,240,.6);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  z-index: 6;
  opacity: 0;
  transition: opacity .2s;
}
.tc-node:hover .tc-node-label {
  opacity: 1;
}
/* Hide label always - show only in tooltip */
.tc-node-icon:not([style*="background-image"]) ~ .tc-node-label {
  opacity: 0;
}
/* Placeholder icon when image not loaded */
.tc-node-icon:not([style*="background-image"]) {
  background: radial-gradient(circle, rgba(60,60,80,.8), rgba(20,20,30,.9));
}

/* Rank Badge */
.tc-node-rank {
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: .6rem; font-weight: 700;
  background: rgba(0,0,0,.85);
  color: var(--gold);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(245,166,35,.3);
  z-index: 6;
  line-height: 1.2;
}

/* Node States */
.tc-node-locked {
  opacity: .3;
  cursor: not-allowed;
  border-color: rgba(255,255,255,.05);
}
.tc-node-locked .tc-node-icon {
  filter: grayscale(1) brightness(.4);
}

.tc-node-available {
  border-color: rgba(0,180,216,.4);
  box-shadow: 0 0 8px rgba(0,180,216,.15);
}
.tc-node-available .tc-node-icon {
  filter: grayscale(.4) brightness(.7);
}

.tc-node-default {
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 0 6px rgba(255,255,255,.1);
}
.tc-node-default .tc-node-icon {
  filter: brightness(.85);
}

.tc-node-selected,
.tc-node-maxed {
  border-color: rgba(245,166,35,.7);
  box-shadow: 0 0 12px rgba(245,166,35,.3), 0 0 24px rgba(245,166,35,.1);
}
.tc-node-selected .tc-node-icon,
.tc-node-maxed .tc-node-icon {
  filter: brightness(1.1) saturate(1.2);
}

.tc-node-partial {
  border-color: rgba(245,166,35,.4);
  box-shadow: 0 0 8px rgba(245,166,35,.15);
}
.tc-node-partial .tc-node-icon {
  filter: brightness(.9);
}

.tc-node-maxed {
  border-color: rgba(245,166,35,.9);
  box-shadow: 0 0 16px rgba(245,166,35,.4), 0 0 32px rgba(245,166,35,.15);
}

/* Tooltip */
.tc-tooltip {
  position: absolute;
  z-index: 100;
  background: rgba(6,9,15,.97);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  max-width: 340px;
  min-width: 240px;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 16px rgba(245,166,35,.08);
  backdrop-filter: blur(12px);
}
.tc-tooltip-name {
  font-size: 1rem; font-weight: 700;
  color: var(--gold2);
  margin-bottom: .3rem;
}
.tc-tooltip-type {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.tc-tooltip-meta {
  font-size: .78rem; color: var(--muted);
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tc-tooltip-desc {
  font-size: .82rem; color: var(--text);
  line-height: 1.5;
  margin-bottom: .4rem;
}
.tc-tooltip-rank {
  font-size: .78rem; color: var(--gold);
  margin-top: .4rem;
  font-weight: 600;
}
.tc-tooltip-hint {
  font-size: .68rem; color: rgba(136,153,170,.5);
  margin-top: .5rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.04);
}
.tc-tooltip-choice-hint {
  font-size: .72rem; color: var(--cyan);
  margin: .4rem 0;
  font-style: italic;
}
.tc-tooltip-choice {
  font-size: .8rem;
  padding: .4rem;
  margin: .3rem 0;
  border-radius: 6px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
}
.tc-tooltip-choice-active {
  background: rgba(245,166,35,.08);
  border-color: rgba(245,166,35,.2);
}
.tc-tooltip-choice-desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero Talent Trees */
.tc-hero-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tc-hero-tabs {
  display: flex; gap: .5rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tc-hero-tab {
  padding: .4rem .9rem; border-radius: 6px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-family: inherit;
  transition: all .2s;
}
.tc-hero-tab:hover {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.3);
  color: var(--violet2);
}
.tc-hero-tab.active {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  color: var(--violet2);
  box-shadow: 0 0 12px rgba(124,58,237,.15);
}

/* Output Area */
.tc-output {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tc-output-label {
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tc-output-string {
  font-size: .85rem;
  color: var(--muted);
}
.tc-build-code {
  display: block;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  padding: .6rem .8rem;
  font-size: .78rem;
  color: var(--gold2);
  word-break: break-all;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  margin-bottom: .5rem;
}
.tc-build-summary {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .tc-tree-wrap {
    flex-direction: column;
    align-items: center;
  }
  .tc-divider {
    width: 60%;
    min-height: 0;
    height: 1px;
    margin: 1rem 0;
  }
  .tc-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tc-counters {
    gap: .5rem;
  }
  .tc-grid {
    transform: scale(0.85);
    transform-origin: top center;
  }
}

@media (max-width: 600px) {
  .tc-container {
    padding: 1rem .75rem;
  }
  .tc-grid {
    transform: scale(0.7);
    transform-origin: top center;
  }
  .tc-tooltip {
    max-width: 280px;
    min-width: 200px;
  }
}
