/*
 * Page: Home / Landing Page
 * Template: templates/pages/index.html
 * Description: Styles for landing page with event leaderboard and community promo
 */

/* Temporary notice */
.temp-notice {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-top: 0.5rem;
  text-align: center;
}

/* New event banner */
.new-event-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(232, 168, 0, 0.15), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem auto;
  max-width: 800px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  animation: banner-glow 3s ease-in-out infinite alternate;
}

.new-event-banner:hover {
  background: linear-gradient(135deg, rgba(232, 168, 0, 0.25), rgba(255, 215, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.8);
}

@keyframes banner-glow {
  from { box-shadow: 0 0 8px rgba(255, 215, 0, 0.1); }
  to   { box-shadow: 0 0 16px rgba(255, 215, 0, 0.25); }
}

.new-event-badge {
  background: #ffd700;
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.new-event-content {
  flex: 1;
  min-width: 0;
}

.new-event-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.new-event-arrow {
  color: #ffd700;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.new-event-banner:hover .new-event-arrow {
  transform: translateX(4px);
}

/* Community promo banner */
.community-promo-banner {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
}

.community-promo-title {
  color: #ffd700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.community-promo-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.community-promo-link {
  display: inline-block;
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.community-promo-link:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

/* Event subtitle */
.event-subtitle {
  color: var(--color-text-secondary, oklch(86% 0.008 80));
  font-size: 0.9rem;
}

/* No active event section */
.no-event-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.no-event-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.no-event-title {
  color: #fff;
  margin-bottom: 1rem;
}

.no-event-message {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.no-event-links {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.no-event-links a {
  color: #ffd700;
  text-decoration: underline;
}

/* YouTube videos grid */
.youtube-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* YouTube video card */
.youtube-video-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.youtube-video-card a {
  display: block;
}

.youtube-video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.youtube-video-content {
  padding: 1rem;
}

.youtube-video-channel {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.youtube-video-channel a {
  color: #ffd700;
  text-decoration: none;
}

.youtube-video-title {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Event stats bar */
.event-stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl, 3rem);
  padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  margin-bottom: var(--spacing-lg, 1.5rem);
  background: var(--color-bg-elevated, #21262d);
  border-radius: var(--radius-soft, 8px);
  border: 1px solid var(--color-border, #30363d);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.event-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.event-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary, #58a6ff);
  font-variant-numeric: tabular-nums;
}

.event-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Top 3 row fade — gradient from rank color to transparent */
#leaderboard-table tbody tr.rank-row-1 {
  background: linear-gradient(90deg, oklch(82% 0.165 82 / 0.26), oklch(82% 0.165 82 / 0.06) 60%, transparent);
}

#leaderboard-table tbody tr.rank-row-1:hover {
  background: linear-gradient(90deg, oklch(82% 0.165 82 / 0.36), oklch(82% 0.165 82 / 0.10) 60%, transparent);
}

#leaderboard-table tbody tr.rank-row-2 {
  background: linear-gradient(90deg, oklch(78% 0.038 222 / 0.22), oklch(78% 0.038 222 / 0.05) 60%, transparent);
}

#leaderboard-table tbody tr.rank-row-2:hover {
  background: linear-gradient(90deg, oklch(78% 0.038 222 / 0.32), oklch(78% 0.038 222 / 0.08) 60%, transparent);
}

#leaderboard-table tbody tr.rank-row-3 {
  background: linear-gradient(90deg, oklch(65% 0.090 48 / 0.22), oklch(65% 0.090 48 / 0.05) 60%, transparent);
}

#leaderboard-table tbody tr.rank-row-3:hover {
  background: linear-gradient(90deg, oklch(65% 0.090 48 / 0.32), oklch(65% 0.090 48 / 0.08) 60%, transparent);
}


/* Empty state for leaderboard */
.leaderboard-empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Easter egg hint */
.hero-secret {
  cursor: default;
  user-select: none;
}
