/* ═══════════════════════════════════════════════════════════════
   HOME PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Main Wrap ── */
#main-wrap {
  position: relative;
  z-index: 10;
  padding-left: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding-right: 40px;
}

@media (max-width: 768px) {
  #main-wrap { padding-left: 20px; padding-right: 20px; padding-bottom: 100px; }
}

/* ── Section Common ── */
.section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) 0;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--purple-light);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px var(--purple);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px var(--purple); }
  50%       { box-shadow: 0 0 16px var(--purple), 0 0 30px var(--purple-glow); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}
.hero-rev {
  color: #ff2a5f;
  text-shadow: 0 0 30px rgba(255, 42, 95, 0.8), 0 0 70px rgba(255, 42, 95, 0.4);
}
.hero-cog {
  color: #00f2fe;
  text-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 0 70px rgba(0, 242, 254, 0.4);
}
.hero-accent {
  color: var(--purple-light);
  text-shadow: 0 0 30px var(--purple-glow);
}
.hero-stroke {
  -webkit-text-stroke: 2px rgba(255,255,255,0.5);
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #86efac;
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.8s var(--ease-out) 0.7s both;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px #22c55e; }
  50%       { transform: scale(1.3); box-shadow: 0 0 14px #22c55e; }
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-3);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  animation: fadeIn 1s var(--ease-out) 1.5s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--purple-light));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════
   ANNOUNCEMENTS
══════════════════════════════ */
.announcements-grid {
  display: grid;
  gap: var(--space-3);
}
.announcement-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
}
.announcement-card.pinned {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.04);
}
.ann-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ann-content { flex: 1; }
.ann-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.ann-body  { font-size: 0.9rem; color: var(--text-2); }
.ann-date  { font-size: 0.75rem; color: var(--text-3); margin-top: var(--space-2); }
.pin-icon  { color: var(--gold); font-size: 0.85rem; margin-left: auto; flex-shrink: 0; }

/* ══════════════════════════════
   MEMBERS GRID
══════════════════════════════ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur-med) var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.member-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}
.member-card:hover::before { opacity: 1; }
.member-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,0.4); }

.member-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-2);
  transition: all var(--dur-med) var(--ease);
  background: var(--surface-2);
}
.member-card:hover .member-avatar {
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}
.member-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad-purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  border: 2px solid var(--border-2);
}

.member-name {
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-tag {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.member-card .bio-link {
  position: absolute;
  inset: 0;
}

/* ══════════════════════════════
   ACHIEVEMENTS
══════════════════════════════ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.achievement-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}
.achievement-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.achievement-title { font-weight: 700; font-size: 0.9rem; }
.achievement-desc  { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.achievement-date  { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

/* ══════════════════════════════
   MEMORY CAROUSEL
══════════════════════════════ */
.memory-carousel {
  position: relative;
  height: 420px;
  perspective: 1200px;
}
.memory-slide {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.memory-item {
  position: absolute;
  width: 340px; height: 380px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: all 0.6s var(--ease);
  cursor: pointer;
  border: 1px solid var(--border);
}
.memory-item.mem-active  { transform: scale(1) translateX(0) translateZ(0); z-index: 3; opacity: 1; }
.memory-item.mem-prev    { transform: scale(0.88) translateX(-280px) translateZ(-100px); z-index: 2; opacity: 0.6; }
.memory-item.mem-next    { transform: scale(0.88) translateX(280px)  translateZ(-100px); z-index: 2; opacity: 0.6; }
.memory-item.mem-far     { transform: scale(0.75) translateZ(-300px); z-index: 1; opacity: 0; }

.memory-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.memory-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--purple-light);
  margin-bottom: 4px;
}
.memory-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.memory-des {
  font-size: 0.85rem;
  color: var(--text-2);
}

.memory-nav {
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.mem-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--dur-fast) var(--ease);
}
.mem-btn:hover { background: var(--purple); border-color: transparent; }
.memory-dots { display: flex; gap: 6px; }
.mem-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.mem-dot.active {
  background: var(--purple);
  width: 18px;
  border-radius: 3px;
  border-color: transparent;
}

/* ══════════════════════════════
   CLIPS GRID
══════════════════════════════ */
.category-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.cat-btn:hover { background: var(--surface-3); color: #fff; }
.cat-btn.active {
  background: var(--purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.clip-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease);
}
.clip-card:hover { transform: translateY(-6px); }
.clip-card:hover .clip-thumb { transform: scale(1.05); }

.clip-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.clip-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.clip-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.clip-card:hover .clip-play-overlay { opacity: 1; }
.clip-play-overlay i {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(124,58,237,0.8));
}

.clip-info {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
}
.clip-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: 6px;
}
.clip-game, .clip-cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.clip-game { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.clip-cat  { background: var(--surface-3); color: var(--text-3); }
.clip-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }

/* ══════════════════════════════
   VOTE CARD
══════════════════════════════ */
.vote-card {
  padding: var(--space-6);
  max-width: 600px;
}
.vote-title { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-2); }
.vote-desc  { color: var(--text-2); font-size: 0.9rem; margin-bottom: var(--space-5); }
.vote-options { display: flex; flex-direction: column; gap: var(--space-2); }
.vote-option {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease);
}
.vote-option:hover { border-color: rgba(124,58,237,0.4); }
.vote-option.voted { border-color: var(--purple); }
.vote-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(124,58,237,0.15);
  border-radius: var(--radius-md);
  transition: width 0.8s var(--ease);
}
.vote-option-content {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
}
.vote-option-text { font-weight: 600; }
.vote-pct { font-size: 0.85rem; color: var(--purple-light); font-weight: 700; }
.vote-meta { font-size: 0.8rem; color: var(--text-3); margin-top: var(--space-3); }
.vote-ends { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }

/* ══════════════════════════════
   GUESTBOOK WALL
══════════════════════════════ */
.guestbook-wall {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.guestbook-canvas {
  position: relative;
  min-height: 400px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.guestbook-note {
  position: absolute;
  max-width: 200px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.1);
  animation: noteIn 0.4s var(--ease-spring);
  cursor: default;
  transition: transform var(--dur-fast) var(--ease), z-index 0s;
  z-index: 1;
}
.guestbook-note:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
}
@keyframes noteIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1); }
}
.note-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0.8;
}
.note-author img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.note-content { line-height: 1.5; }

.guestbook-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur-md);
}
.guestbook-input { flex: 1; min-width: 200px; }
.color-swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.swatch.active { border-color: #fff; transform: scale(1.2); }

/* ══════════════════════════════
   JOIN BOX
══════════════════════════════ */
.join-box {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-7);
  text-align: center;
}
.join-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.join-sub {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
