/* ============================================
   ATHENA'S AVATARS - TRIBUTE SITE
   A memorial to a gaming guild (2001-2020)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --gold: #c7a711;
  --gold-light: #f9a419;
  --gold-pale: #d4af37;
  --dark-bg: #0a0c10;
  --dark-card: #12151c;
  --dark-card-hover: #1a1e28;
  --dark-nav: #0d0f14;
  --dark-border: #1e2330;
  --text-primary: #c8cad0;
  --text-secondary: #808694;
  --text-dim: #505560;
  --red-accent: #6f000f;
  --red-glow: #cc3300;
  --blue-accent: #1a3a5c;
  --green-hib: #2d6b3f;
  --alliance-blue: #1e40af;
  --horde-red: #991b1b;
  --font-heading: 'Cinzel', 'Baskerville Old Face', Georgia, serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --max-width: 1200px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(199, 167, 17, 0.08);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* --- Main Content --- */
main {
  padding-top: var(--nav-height);
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(199, 167, 17, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(111, 0, 15, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-guild-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 60px rgba(199, 167, 17, 0.2);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-years {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-dim);
  letter-spacing: 8px;
  margin-bottom: 48px;
}

.hero-quote {
  max-width: 720px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}

.hero-quote-attr {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* --- Cards --- */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--dark-card-hover);
  border-color: rgba(199, 167, 17, 0.15);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--dark-border), var(--gold-pale), var(--dark-border), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 47%;
  margin-bottom: 32px;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  margin-left: 53%;
  text-align: left;
  padding-left: 40px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 3px solid var(--dark-bg);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after { right: -6px; }
.timeline-item:nth-child(even)::after { left: -6px; }

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  font-family: var(--font-heading);
}

.tag-daoc { background: rgba(45, 107, 63, 0.2); color: #5cb87a; border: 1px solid rgba(45, 107, 63, 0.3); }
.tag-wow { background: rgba(30, 64, 175, 0.2); color: #60a5fa; border: 1px solid rgba(30, 64, 175, 0.3); }
.tag-war { background: rgba(153, 27, 27, 0.2); color: #f87171; border: 1px solid rgba(153, 27, 27, 0.3); }
.tag-other { background: rgba(107, 70, 193, 0.2); color: #a78bfa; border: 1px solid rgba(107, 70, 193, 0.3); }
.tag-milestone { background: rgba(199, 167, 17, 0.15); color: var(--gold); border: 1px solid rgba(199, 167, 17, 0.3); }

/* --- Game Cards Grid --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  overflow: hidden;
}

.game-card-header {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.game-card-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.game-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Member Grid --- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.member-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  padding: 14px 16px;
  transition: all 0.25s ease;
}

.member-card:hover {
  border-color: rgba(199, 167, 17, 0.2);
  background: var(--dark-card-hover);
}

.member-name {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.member-role {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.member-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Achievements --- */
.achievements-list {
  display: grid;
  gap: 16px;
}

.achievement {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.achievement-title {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 2px;
}

.achievement-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--dark-border);
  transition: all 0.25s ease;
}

.gallery-thumb:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.1);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 16px;
  border-radius: 4px;
  z-index: 2001;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: rgba(199, 167, 17, 0.2);
}

.video-card .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-info {
  padding: 14px 18px;
}

.video-card-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.video-card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Lore / Quote Blocks --- */
.lore-post {
  margin-bottom: 32px;
  border-left: 3px solid var(--dark-border);
  padding-left: 24px;
}

.lore-post:hover {
  border-left-color: var(--gold);
}

.lore-post-title {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.lore-post-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.lore-post-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

blockquote {
  border-left: 3px solid rgba(199, 167, 17, 0.3);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(199, 167, 17, 0.03);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Raid Progression Table --- */
.raid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.raid-table th {
  font-family: var(--font-heading);
  color: var(--gold);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--dark-border);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.raid-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-secondary);
}

.raid-table tr:hover td {
  background: rgba(199, 167, 17, 0.03);
}

.raid-table .raid-name { color: var(--text-primary); font-weight: 600; }
.raid-table .server-first { color: var(--gold); font-weight: 700; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Gallery Filter Buttons --- */
.gallery-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover { border-color: var(--gold); color: var(--text-secondary); }
.filter-btn.active { background: rgba(199, 167, 17, 0.1); border-color: var(--gold); color: var(--gold); }

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--dark-border);
  margin-top: 60px;
}

.footer-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-attr {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.footer-years {
  font-family: var(--font-heading);
  color: var(--gold);
  letter-spacing: 6px;
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--dark-border);
  }

  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; margin-left: 0 !important; text-align: left !important; padding-left: 50px !important; padding-right: 0 !important; }
  .timeline-item::after { left: 14px !important; right: auto !important; }

  .hero-stats { gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* --- Utility --- */
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* --- Timeline Media Popup --- */
.timeline-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  margin-left: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(199, 167, 17, 0.1);
  border: 1px solid rgba(199, 167, 17, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.timeline-media-badge:hover {
  background: rgba(199, 167, 17, 0.25);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.timeline-media-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.timeline-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.timeline-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.timeline-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.timeline-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.timeline-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--dark-border);
  flex-shrink: 0;
}

.timeline-popup-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: 1px;
}

.timeline-popup-header .popup-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.timeline-popup-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.timeline-popup-close:hover {
  color: var(--text-primary);
}

.timeline-popup-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.timeline-popup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.timeline-popup-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-popup-gallery img:hover {
  transform: scale(1.03);
  border-color: var(--gold-pale);
}

.timeline-popup-videos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-popup-videos .video-entry {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-popup-videos .video-entry-title {
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.timeline-popup-videos iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.timeline-popup-section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .timeline-popup {
    width: 95%;
    max-height: 90vh;
  }
  .timeline-popup-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
