/* =============================================
   IOP FANSITE - MAIN STYLESHEET
   Dark cinematic theme with fire accents
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Cinzel:wght@700;900&display=swap');

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --dark-4: #2a2a2a;
  --red: #CC3333;
  --red-bright: #e03333;
  --orange: #FF6B35;
  --orange-light: #ff8c5a;
  --gold: #FFD700;
  --gold-dim: #d4a800;
  --ember: #FF4500;
  --text-primary: #f0e8d8;
  --text-secondary: #b0a090;
  --text-dim: #6a5a4a;
  --nav-height: 70px;
  --section-pad: 100px;
  --transition: 0.3s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: color var(--transition);
}

.nav-logo:hover { color: var(--orange); }

.nav-logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-dofus-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 7px 16px;
  border-radius: 3px;
  transition: all var(--transition) !important;
}

.nav-dofus-link:hover {
  color: var(--gold) !important;
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.nav-dofus-link::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/iop-male-dofus-20-art.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  transform-origin: center;
  filter: brightness(0.45) saturate(1.2);
  will-change: transform;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.1) 30%,
    rgba(10,10,10,0.5) 65%,
    rgba(10,10,10,0.95) 100%
  );
}

.hero-fire-left,
.hero-fire-right {
  position: absolute;
  bottom: 0;
  width: 300px;
  height: 400px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-fire-left {
  left: -20px;
  background-image: url('../images/Fire-Wrath__03.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  animation: fireFlicker 2.5s ease-in-out infinite alternate;
}

.hero-fire-right {
  right: -20px;
  background-image: url('../images/Fire-Wrath__05.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  animation: fireFlicker 2.1s ease-in-out infinite alternate-reverse;
  transform: scaleX(-1);
}

/* Animated ember particles */
.ember-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--orange);
  animation: emberRise linear infinite;
  opacity: 0;
}

@keyframes emberRise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-40vh) translateX(var(--drift)) scale(0.8); opacity: 0.8; }
  100% { transform: translateY(-90vh) translateX(calc(var(--drift) * 1.5)) scale(0.3); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
}

.hero-emblem {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8)) drop-shadow(0 0 40px rgba(255, 69, 0, 0.4));
  animation: emblemPulse 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards 0.5s;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 40%, var(--orange) 70%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 20px rgba(255, 107, 53, 0.4));
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--gold) 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards 0.9s;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-cta:hover::before { opacity: 1; }
.hero-cta:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5); }

.hero-cta span { position: relative; z-index: 1; }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   SECTION DIVIDERS (blade shapes)
   ============================================= */
.divider-blade {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}

.divider-blade svg {
  width: 100%;
  height: 100%;
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  position: relative;
  padding: 0 20px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--orange);
}

.section-tag::before { right: calc(100% - 16px); }
.section-tag::after { left: calc(100% - 16px); }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title.red-accent {
  background: linear-gradient(135deg, #fff 0%, var(--orange) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Fade-in animations on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   LORE SECTION
   ============================================= */
#lore {
  padding: var(--section-pad) 40px;
  background: var(--dark);
  position: relative;
}

.lore-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(204, 51, 51, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.lore-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.lore-image-wrap {
  position: relative;
}

.lore-image-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, transparent 100%);
  z-index: 0;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.lore-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  filter: brightness(0.9) saturate(1.1);
}

.lore-text-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.lore-text-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.lore-text-block p strong {
  color: var(--orange);
  font-weight: 600;
}

.lore-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lore-pillar {
  background: var(--dark-2);
  border: 1px solid rgba(255, 107, 53, 0.15);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: border-color var(--transition), transform var(--transition);
}

.lore-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.lore-pillar:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-4px);
}

.lore-pillar:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.pillar-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

.pillar-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
#galerie {
  padding: var(--section-pad) 40px;
  background: var(--black);
  position: relative;
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-2);
  aspect-ratio: 4/3;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
  transition: opacity var(--transition);
}

.gallery-item:hover::before {
  opacity: 0.7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7) saturate(1.3);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.gallery-item-legend {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 3;
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 53, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-zoom-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Fire effect overlays for gallery */
.gallery-item.fire-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: url('../images/Effects_Fire_0_06.png') bottom center / contain no-repeat;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item.fire-frame:hover::after {
  opacity: 0.4;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-inner img {
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(255, 107, 53, 0.3);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.lightbox-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* =============================================
   BUILDS SECTION
   ============================================= */
#builds {
  padding: var(--section-pad) 40px;
  background: var(--dark);
  position: relative;
}

.builds-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.builds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.build-card {
  background: var(--dark-2);
  border: 1px solid transparent;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.build-card:hover {
  transform: translateY(-6px);
}

.build-card-pvp {
  border-color: rgba(204, 51, 51, 0.25);
}

.build-card-pvp:hover {
  box-shadow: 0 16px 50px rgba(204, 51, 51, 0.15);
}

.build-card-pve {
  border-color: rgba(255, 107, 53, 0.25);
}

.build-card-pve:hover {
  box-shadow: 0 16px 50px rgba(255, 107, 53, 0.15);
}

.build-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.build-card-pvp::before {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.build-card-pve::before {
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.build-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.build-type-badge.pvp {
  background: rgba(204, 51, 51, 0.2);
  color: var(--red-bright);
  border: 1px solid rgba(204, 51, 51, 0.4);
}

.build-type-badge.pve {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.build-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.build-card-pvp h3 { color: var(--red-bright); }
.build-card-pve h3 { color: var(--gold); }

.build-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.build-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.build-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-bar {
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
  width: 0;
}

.build-card-pvp .stat-fill { background: linear-gradient(90deg, var(--red), var(--orange)); }
.build-card-pve .stat-fill { background: linear-gradient(90deg, var(--orange), var(--gold)); }

.stat-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
}

.build-equipment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.build-equipment-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.build-equipment-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.build-card-pvp .build-equipment-list li::before { background: var(--red); }
.build-card-pve .build-equipment-list li::before { background: var(--gold); }

.build-tips {
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.build-card-pvp .build-tips { border-color: var(--red); }
.build-card-pve .build-tips { border-color: var(--gold); }

/* =============================================
   SPELLS SECTION
   ============================================= */
#sorts {
  padding: var(--section-pad) 40px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.sorts-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 69, 0, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.sorts-fire-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.15;
  background: url('../images/Fire-Wrath__02.png') center bottom / auto 100% repeat-x;
  pointer-events: none;
}

.sorts-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.spell-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 107, 53, 0.12);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.spell-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spell-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 50%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.spell-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow:
    0 20px 50px rgba(255, 69, 0, 0.2),
    0 0 30px rgba(255, 107, 53, 0.1),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.spell-card:hover::before { opacity: 1; }
.spell-card:hover::after { opacity: 1; }

/* Glow pulse animation on hover */
.spell-card:hover .spell-icon-wrap {
  animation: glowPulse 1.5s ease-in-out infinite;
}

.spell-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spell-icon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.2;
}

.spell-icon-wrap img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px var(--orange)) saturate(1.5) brightness(1.2);
}

.spell-name {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
}

.spell-class {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin-bottom: 20px;
}

.spell-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.3), transparent);
  margin-bottom: 20px;
}

.spell-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: center;
  margin-bottom: 24px;
}

.spell-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spell-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.spell-card:hover .spell-stat {
  background: rgba(255, 107, 53, 0.07);
  border-color: rgba(255, 107, 53, 0.2);
}

.spell-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.spell-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 107, 53, 0.15);
  padding: 60px 40px 32px;
  position: relative;
  overflow: hidden;
}

.footer-fire-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 69, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.footer-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.5;
  transition: opacity var(--transition);
}

.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  text-align: right;
  max-width: 400px;
  line-height: 1.6;
}

/* =============================================
   SECTION SEPARATOR (animated fire line)
   ============================================= */
.fire-separator {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 20%, var(--orange) 50%, var(--gold) 80%, transparent 100%);
  position: relative;
  overflow: visible;
}

.fire-separator::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,107,53,0.3) 30%, rgba(255,215,0,0.3) 50%, rgba(255,107,53,0.3) 70%, transparent 100%);
  filter: blur(6px);
  animation: fireSweep 3s ease-in-out infinite;
}

@keyframes fireSweep {
  0%, 100% { opacity: 0.5; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes emblemPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8)) drop-shadow(0 0 40px rgba(255, 69, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 60px rgba(255, 107, 53, 0.6)); }
}

@keyframes fireFlicker {
  0% { opacity: 0.5; transform: scaleY(1) scaleX(var(--sx, 1)); }
  33% { opacity: 0.65; transform: scaleY(1.03) scaleX(var(--sx, 1)); }
  66% { opacity: 0.55; transform: scaleY(0.97) scaleX(var(--sx, 1)); }
  100% { opacity: 0.7; transform: scaleY(1.05) scaleX(var(--sx, 1)); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 12px var(--orange)) saturate(1.5) brightness(1.2); }
  50% { filter: drop-shadow(0 0 24px var(--gold)) drop-shadow(0 0 8px var(--ember)) saturate(2) brightness(1.5); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .lore-grid { grid-template-columns: 1fr; gap: 40px; }
  .lore-pillars { grid-template-columns: repeat(2, 1fr); }
  .builds-grid { grid-template-columns: 1fr; }
  .sorts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px; }

  #navbar { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255,107,53,0.2);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }

  .nav-hamburger { display: flex; }

  .hero-fire-left, .hero-fire-right { width: 180px; height: 250px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sorts-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .lore-pillars { grid-template-columns: 1fr; }

  #lore, #galerie, #builds, #sorts { padding: 70px 20px; }
  #footer { padding: 48px 20px 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .builds-grid { grid-template-columns: 1fr; }
  .hero-fire-left, .hero-fire-right { display: none; }
}
