/* ═══════════════════════════════════════════════════════
   Home Page — css/home.css  v3
   Depends on css/base.css (tokens + nav)
   ═══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
  filter: blur(4px) brightness(.3) saturate(.7);
  transform: scale(1.05);
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(4px) brightness(.3) saturate(.7);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(124,58,237,.15) 0%, transparent 70%),
    linear-gradient(180deg, rgba(15,17,23,.3) 0%, rgba(15,17,23,.6) 50%, rgba(15,17,23,.95) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  will-change: transform;
  z-index: 2;
}
.hero-glow--1 {
  width: 50vw; height: 50vw;
  max-width: 550px; max-height: 550px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  top: 10%; left: 15%;
  animation: drift1 14s ease-in-out infinite;
}
.hero-glow--2 {
  width: 35vw; height: 35vw;
  max-width: 420px; max-height: 420px;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
  bottom: 5%; right: 10%;
  animation: drift2 11s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(.97); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-25px, -30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #a78bfa;
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: .5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.hero-author strong { color: var(--text-accent); font-weight: 700; }

.hero-social {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color .2s, transform .2s;
}
.hero-social:hover { color: var(--text-accent); transform: scale(1.15); }
.hero-social svg { width: 20px; height: 20px; }

.hero-ctas {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  letter-spacing: .02em;
}
.hero-cta svg { width: 18px; height: 18px; }

.hero-cta--pri {
  background: var(--accent-color);
  color: #fff;
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 16px rgba(124, 58, 237, .4);
}
.hero-cta--pri:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .5);
}

.hero-cta--sec {
  background: rgba(255, 255, 255, .05);
  color: var(--text-primary);
  border: 2px solid var(--border-hover);
  backdrop-filter: blur(8px);
}
.hero-cta--sec:hover {
  border-color: var(--accent-color);
  color: var(--text-accent);
  background: rgba(124, 58, 237, .08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .45;
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 3;
}
.scroll-hint svg { width: 16px; height: 16px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Shared Section ───────────────────────────────────── */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.section-subtitle {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.section-divider {
  max-width: 200px;
  margin: 0 auto;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: .3;
}

/* ── Streams ──────────────────────────────────────────── */
.streams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stream-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.stream-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.stream-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  font-weight: 700;
  font-size: .8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stream-label svg { width: 18px; height: 18px; }
.stream-label--twitch svg { color: #9146ff; }
.stream-label--yt svg { color: #ff0000; }

.stream-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--card-bg);
}
.stream-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
}
.stream-placeholder svg { width: 40px; height: 40px; opacity: .2; }

/* ── Boss Tips — Unified Card ─────────────────────────── */
.tips-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.tips-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
}

/* Left column — boss icon tabs */
.tips-card-tabs {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, .12);
}

.boss-wing {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.wing-label {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: .45;
  line-height: 1.2;
  padding-left: .1rem;
}

.wing-icons {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}

.boss-tab {
  background: rgba(30, 33, 48, .5);
  border: 2px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  width: 48px; height: 48px;
  padding: .2rem;
  font-family: inherit;
  font-size: 0;
  color: transparent;
}
.boss-tab:hover {
  border-color: rgba(124, 58, 237, .6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .2);
}
.boss-tab.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.boss-tab img {
  width: 100%; height: 100%;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.boss-tab-tip {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .92);
  color: #fff;
  padding: .25rem .5rem;
  border-radius: 5px;
  font-size: .65rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  border: 1px solid var(--accent-color);
  z-index: 10;
}
.boss-tab:hover .boss-tab-tip { opacity: 1; }

/* Right column — tip content */
.tips-card-body {
  padding: 1.5rem 1.75rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.boss-panel { display: none; }
.boss-panel.active {
  display: block;
  animation: fadeUp .2s ease;
}

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

.boss-panel-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.boss-panel-name img {
  width: 28px; height: 28px;
  border-radius: 5px;
  border: 2px solid var(--border-color);
}

.tips-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tips-list li {
  padding: .35rem 0 .35rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: .9rem;
}
.tips-list li::before {
  content: "\25B8";
  position: absolute; left: 0;
  color: #a78bfa;
  font-size: .9rem;
}
.tips-list li a.wowhead {
  color: #ffd100;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.tips-list li a.wowhead:hover { color: #ffe14d; }

/* Parsing rules */
.parsing-box {
  background: rgba(124, 58, 237, .05);
  border: 1px solid rgba(124, 58, 237, .15);
  border-radius: 8px;
  padding: .7rem .9rem;
}
.parsing-hdr {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .3rem;
}
.parsing-hdr svg { color: var(--accent-color); flex-shrink: 0; }
.parsing-lbl {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-accent);
}
.parsing-box ul { list-style: none; padding: 0; margin: 0; }
.parsing-box li {
  font-size: .75rem;
  color: var(--text-muted);
  padding: .15rem 0 .15rem 1rem;
  position: relative;
  line-height: 1.5;
}
.parsing-box li::before {
  content: "\2014";
  position: absolute; left: 0;
  color: rgba(124, 58, 237, .5);
}

/* ── Feature Cards ────────────────────────────────────── */
.features-section {
  padding-top: 0;
  padding-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  opacity: 0;
  transition: opacity .25s;
}
.feature-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .15);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(124, 58, 237, .12);
  border-radius: 10px;
  color: var(--accent-hover);
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.feature-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}


/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .streams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; padding: 2rem 1.5rem; }
  .hero-title { letter-spacing: .04em; }
  .hero-ctas { gap: .5rem; }
  .hero-cta { padding: .7rem 1.25rem; font-size: .875rem; }
  .scroll-hint { display: none; }

  .home-section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 1.25rem; }

  .tips-section { padding: 3.5rem 1.25rem 4rem; }
  .tips-card { grid-template-columns: 1fr; }
  .tips-card-tabs {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
  }
  .boss-wing { flex-direction: row; align-items: center; gap: .375rem; }
  .wing-label { display: none; }
  .wing-icons { gap: .3rem; }
  .boss-tab { width: 44px; height: 44px; }
  .tips-card-body { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-cta { width: 100%; max-width: 260px; justify-content: center; }
  .hero-author { flex-wrap: wrap; justify-content: center; }
  .boss-tab { width: 40px; height: 40px; }
  .tips-card-tabs { padding: .875rem; }
  .tips-card-body { padding: 1rem .875rem; }
  .features-grid { grid-template-columns: 1fr; }
}
