/* Dark Theme CSS Variables and Components */
:root {
  --bg: #0b0d10;
  --surface: #121418;
  --muted: #1a1d22;
  --text: #e6eaf2;
  --subtext: #a9b2c3;
  --accent: #32d399;
  --accent-contrast: #0b0d10;
  --warning: #f59e0b;
  --border: #232833;
  --card: #121418;
  --hover-bg: #1f2937;
  --focus-ring: #60a5fa;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --muted: #f1f5f9;
    --text: #1e293b;
    --subtext: #64748b;
    --accent: #059669;
    --accent-contrast: #ffffff;
    --warning: #d97706;
    --border: #e2e8f0;
    --card: #ffffff;
    --hover-bg: #f1f5f9;
    --focus-ring: #3b82f6;
  }
}

/* Hero Leaderboard Styles */
.hero-leaderboard {
  background: linear-gradient(135deg, var(--bg) 0%, var(--muted) 100%);
  padding: 3rem 1rem;
  border-bottom: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-leaderboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../pics/ranking-area-bg.jpg") repeat-x;
  opacity: 0.1;
  pointer-events: none;
  animation: scrollBackground 30s linear infinite;
}

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

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin: 0;
  font-weight: 700;
}

.live-matches-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ranking-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.tab-button {
  background: transparent;
  border: none;
  color: var(--subtext);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.tab-button.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.tab-button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  width: 300px;
  max-width: 100%;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50, 211, 153, 0.1);
}

.search-input::placeholder {
  color: var(--subtext);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  color: var(--subtext);
  pointer-events: none;
}

.rankings-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.table-container {
  overflow-x: auto;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rankings-table th {
  background: var(--muted);
  color: var(--text);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rankings-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ranking-row:hover {
  background: var(--hover-bg);
}

.rank-cell {
  font-weight: 600;
  color: var(--accent);
}

.player-cell {
  font-weight: 500;
}

.streak-cell.positive {
  color: var(--accent);
}

.streak-cell.negative {
  color: var(--warning);
}

.streak-cell.neutral {
  color: var(--subtext);
}

.hero-actions {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.open-rankings-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.open-rankings-btn:hover {
  background: #2bb87f;
  transform: translateY(-1px);
}

.open-rankings-btn:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Two Column Layout */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (max-width: 1024px) {
  .main-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* News Section Styles */
.news-section {
  background: var(--bg);
  color: var(--text);
}

.news-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.news-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.news-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.75rem;
  color: var(--accent);
  margin: 0 0 1rem 0;
}

.news-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--muted);
  color: var(--subtext);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Fallback for vertical layout on small screens */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* For home page news section - keep vertical layout */
.home-news .news-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1rem 0;
}

/* Initially hide articles beyond the first 6 on home page */
.home-news .news-card.initially-hidden {
  display: none !important;
}

.news-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.news-card:last-child {
  border-bottom: 1px solid var(--border);
}

/* Home page news cards - keep original vertical styling */
.home-news .news-card {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.home-news .news-card:last-child {
  border-bottom: none;
}

.news-card:hover {
  background: var(--muted);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.news-card-image {
  position: relative;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-card:hover {
  background: var(--hover-bg);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.news-tag {
  background: var(--muted);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.tag-tournament {
  background: var(--accent);
  color: var(--accent-contrast);
}

.tag-update {
  background: var(--warning);
  color: var(--accent-contrast);
}

.tag-community {
  background: #8b5cf6;
  color: white;
}

.news-date {
  color: var(--subtext);
  font-size: 0.875rem;
}

.news-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.news-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--accent);
}

.news-summary {
  margin: 0;
  color: var(--subtext);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: var(--subtext);
  font-size: 0.875rem;
}

.article-stats {
  display: flex;
  gap: 1rem;
}

.view-count {
  color: var(--subtext);
  font-size: 0.875rem;
}

.no-articles {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--subtext);
}

.no-articles-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-articles h3 {
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.no-articles p {
  margin: 0;
  line-height: 1.5;
}

.news-pagination {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 211, 153, 0.3);
}

.view-all-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.view-all-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Signup Panel Styles */
.signup-section {
  background: var(--bg);
}

/* Ensure all text in signup section uses proper colors */
.signup-section *,
.signup-panel *,
.signup-cta * {
  color: inherit;
}

.signup-section h1,
.signup-section h2,
.signup-section h3,
.signup-section h4,
.signup-section h5,
.signup-section h6 {
  color: var(--accent) !important;
}

.signup-section p {
  color: var(--text) !important;
}

.signup-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signup-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.75rem;
  color: var(--accent) !important;
  margin: 0 0 0.5rem 0;
}

.signup-subtitle {
  color: var(--subtext) !important;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50, 211, 153, 0.1);
}

.form-error {
  color: var(--warning);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

/* Signup CTA Styles */
.signup-cta {
  text-align: center;
}

.cta-text {
  color: var(--text) !important;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Enhanced text contrast for beta CTA buttons */
.beta-cta-primary .cta-text,
.signup-btn .btn-text {
  color: #000000 !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Additional contrast enhancement with subtle overlay */
.beta-cta-primary::before,
.signup-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: inherit;
  pointer-events: none;
}

.beta-cta-primary,
.signup-btn {
  position: relative;
}

.signup-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  color: #000000;
  border: 2px solid transparent;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(50, 211, 153, 0.3);
  text-shadow: none;
}

.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 211, 153, 0.4);
  background: linear-gradient(135deg, #4ade80, var(--accent));
  border-color: #ffffff;
}

.btn-text {
  color: #000000;
  font-weight: 700;
  text-shadow: none;
}

.btn-arrow {
  color: #000000;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  font-weight: bold;
}

.signup-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-note {
  color: var(--subtext) !important;
  font-size: 0.875rem;
  margin: 1rem 0 0 0;
  line-height: 1.4;
}

.signup-btn:hover:not(:disabled) {
  background: #2bb87f;
  transform: translateY(-1px);
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1rem;
}

.form-message.success {
  background: rgba(50, 211, 153, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.form-message.error {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

/* Video Strip Styles */
.video-strip {
  background: var(--muted);
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Placeholder video thumbnails */
.thumbnail-image {
  background: linear-gradient(135deg, #1a1d22 0%, #2d3748 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 3rem;
}

.thumbnail-image::before {
  content: "🎱";
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
}

.video-section-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin: 0 0 2rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-icon {
  color: var(--accent-contrast);
  font-size: 1.5rem;
  margin-left: 0.25rem;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.video-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.tag-how-to-play {
  background: var(--accent);
  color: var(--accent-contrast);
}

.tag-match-highlight {
  background: var(--warning);
  color: var(--accent-contrast);
}

.tag-dev-update {
  background: #8b5cf6;
  color: white;
}

.video-info {
  padding: 1.5rem;
}

.video-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.video-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-link:hover {
  color: var(--accent);
}

/* Video Placeholder Styles */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

.placeholder-text {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-title-text {
  display: block;
  color: var(--text);
}

.video-status {
  display: block;
  color: var(--subtext);
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 0.25rem;
  font-style: italic;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Beta Page Styles */
.beta-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1a1d23 100%);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.beta-hero-content {
  max-width: 600px;
}

.beta-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

.beta-hero-subtitle {
  font-size: 1.3rem;
  color: var(--subtext);
  line-height: 1.6;
}

.beta-graphic-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.beta-graphic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.digital-globe {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(50, 211, 153, 0.3),
    rgba(50, 211, 153, 0.1),
    transparent
  );
  border: 2px solid var(--accent);
  animation: rotate 20s linear infinite;
  overflow: hidden;
}

.globe-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 50% 50%,
      transparent 48%,
      var(--accent) 49%,
      var(--accent) 51%,
      transparent 52%
    ),
    conic-gradient(
      from 0deg,
      transparent 0deg,
      var(--accent) 2deg,
      transparent 4deg
    );
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.player-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.player-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: playerPulse 2s ease-in-out infinite;
}

.player-dot:nth-child(odd) {
  animation-delay: 1s;
}

.pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
}

.pulse-rings::before,
.pulse-rings::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ringPulse 3s ease-out infinite;
}

.pulse-rings::before {
  width: 60px;
  height: 60px;
}

.pulse-rings::after {
  width: 80px;
  height: 80px;
  animation-delay: 1.5s;
}

.graphic-caption {
  margin-top: 1rem;
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
}

.beta-features {
  padding: 4rem 0;
  background: var(--surface);
}

.beta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(50, 211, 153, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(50, 211, 153, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--subtext);
  line-height: 1.6;
}

.beta-signup-section {
  padding: 4rem 0;
  background: var(--bg);
}

.signup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.signup-info h2 {
  color: var(--text);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.signup-info p {
  color: var(--subtext);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.beta-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--subtext);
}

.benefit-check {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.signup-form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.beta-signup-form h3 {
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(50, 211, 153, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--subtext);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.beta-submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--accent), #4ade80);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.beta-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(50, 211, 153, 0.3);
}

.beta-submit-btn:active {
  transform: translateY(0);
}

.form-note {
  margin-top: 1rem;
  color: var(--subtext);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
}

.beta-timeline {
  padding: 4rem 0;
  background: var(--surface);
}

/* Desktop horizontal timeline */
@media (min-width: 769px) {
  .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    height: 2px;
    background: var(--border);
  }

  .timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 0;
  }

  .timeline-marker {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--border);
    transition: all 0.3s ease;
    z-index: 2;
  }

  .timeline-content {
    margin-top: 90px;
  }
}

/* Mobile vertical timeline */
@media (max-width: 768px) {
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
  }

  .timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--border);
    transition: all 0.3s ease;
  }
}

.timeline-item.active .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(50, 211, 153, 0.5);
}

/* Enhanced desktop timeline styling */
@media (min-width: 769px) {
  .timeline-item.active .timeline-marker {
    width: 24px;
    height: 24px;
    top: 48px;
  }

  .timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .timeline-date {
    font-size: 1rem;
    font-weight: 700;
  }

  /* Add connecting arrows between timeline items */
  .timeline-item:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -0.5rem;
    top: 55px;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 3;
  }
}

.timeline-content h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--subtext);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.timeline-date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes playerPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes ringPulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  70% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes glow {
  from {
    filter: brightness(1) drop-shadow(0 0 5px rgba(50, 211, 153, 0.3));
  }
  to {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(50, 211, 153, 0.5));
  }
}

/* Bar League Specific Styles */
.bar-name {
  position: relative;
}

.bar-qr-indicator {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.2rem;
}

.bar-elo {
  text-align: center;
}

.bar-elo-value {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

.elo-label {
  font-size: 0.7rem;
  color: var(--subtext);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-players-cell {
  padding: 0.5rem;
}

.top-players-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 200px;
}

.top-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--muted);
  border-radius: 0.25rem;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

.top-player:hover {
  background: var(--hover-bg);
}

.player-rank {
  color: var(--accent);
  font-weight: 600;
  min-width: 15px;
}

.player-name {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-elo {
  color: var(--subtext);
  font-weight: 600;
  font-size: 0.75rem;
  min-width: 50px;
  text-align: right;
}

.games-cell {
  font-weight: 500;
  color: var(--text);
}

.players-cell {
  font-weight: 500;
  color: var(--accent);
}

.bar-website-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bar-website-link:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-1px);
}

.location-cell {
  color: var(--subtext);
  font-size: 0.9rem;
}

/* Bar League Tab Styling */
.ranking-tabs .tab-button[data-tab="bars"] {
  position: relative;
}

.ranking-tabs .tab-button[data-tab="bars"]::after {
  content: "🍺";
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.ranking-tabs .tab-button[data-tab="bars"].active::after {
  content: "🏆";
}

/* Modal Bar League Styling */
.modal-tab[data-tab="bars"]::after {
  content: "🍺";
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.modal-tab[data-tab="bars"].active::after {
  content: "🏆";
}

/* Responsive Design */
@media (max-width: 768px) {
  .beta-hero {
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .beta-hero-title {
    font-size: 2.5rem;
  }

  .beta-hero-subtitle {
    font-size: 1.1rem;
  }

  .digital-globe {
    width: 200px;
    height: 200px;
  }

  .signup-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 2rem;
    margin-bottom: 2.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
    width: 14px;
    height: 14px;
  }

  .timeline-item.active .timeline-marker {
    width: 16px;
    height: 16px;
  }
}

/* Rankings Modal Styles */
.rankings-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rankings-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1001;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--subtext);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.modal-tab {
  background: transparent;
  border: none;
  color: var(--subtext);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.modal-tab.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.modal-search {
  flex: 1;
  max-width: 300px;
}

.modal-search-input {
  width: 100%;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
}

.modal-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-stats {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--subtext);
  font-size: 0.875rem;
}

.modal-table-container {
  flex: 1;
  overflow: auto;
}

.modal-rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.modal-rankings-table th {
  background: var(--muted);
  color: var(--text);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-rankings-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.modal-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.pagination-btn {
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--hover-bg);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--subtext);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-tabs {
    justify-content: center;
  }

  .search-input {
    width: 100%;
  }

  /* Bar League Mobile Responsive */
  .top-players-list {
    min-width: 150px;
  }

  .top-player {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .player-name {
    max-width: 80px;
  }

  .bar-elo-value {
    font-size: 0.9rem;
  }

  .modal-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-search {
    max-width: none;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-leaderboard {
    padding: 2rem 0.5rem;
  }

  .modal-container {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .modal-header,
  .modal-controls,
  .modal-stats,
  .modal-pagination {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Article Page Styles */
.article-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.main-wrapper {
  background: var(--bg);
  color: var(--text);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-breadcrumb {
  margin-bottom: 2rem;
  color: var(--subtext);
}

.article-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

.article-hero-image {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.article-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.featured-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-category {
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
}

.article-date {
  color: var(--subtext);
}

.article-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.article-excerpt {
  font-size: 1.25rem;
  color: var(--subtext);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.author-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name-large {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.author-bio {
  color: var(--subtext);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.author-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.article-stats-large {
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--subtext);
}

.article-content {
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text);
}

.article-content h2 {
  color: var(--accent);
  margin: 2rem 0 1rem 0;
}

.article-content h3 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem 0;
}

.article-content h4 {
  color: var(--text);
  margin: 1.25rem 0 0.5rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

.share-article h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.related-articles {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.related-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.related-title {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-content {
  padding: 1.5rem;
}

.related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.related-category {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.related-date {
  color: var(--subtext);
  font-size: 0.875rem;
}

.related-title-text {
  margin: 0 0 0.75rem 0;
}

.related-title-text a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-title-text a:hover {
  color: var(--accent);
}

.related-excerpt {
  color: var(--subtext);
  margin: 0;
  line-height: 1.5;
}

.error-page {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-page h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--subtext);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #2bb87f;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }

  .article-author-info {
    flex-direction: column;
    text-align: center;
  }

  .share-buttons {
    flex-direction: column;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Beta Announcement Banner Styles */
.beta-announcement {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 4rem 1rem; /* Increased padding to accommodate glow effects */
  position: relative;
  overflow: visible; /* Allow glow effects to extend beyond container */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removed gradientShift animation for stability */

.beta-announcement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../pics/ranking-area-bg.jpg") repeat-x;
  opacity: 0.01;
  pointer-events: none;
}

.beta-announcement-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 0 3rem; /* Increased padding to accommodate glow effects */
}

.beta-content {
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  box-sizing: border-box;
  overflow: visible; /* Allow badge glow effects to extend */
}

.beta-badge-cta {
  position: relative;
  display: inline-block;
  margin: 1rem 0 2rem 0; /* Added top margin for glow space */
  padding: 1rem; /* Added padding to ensure glow effects have space */
}

.beta-badge-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #2a2a2a, #404040, #2a2a2a);
  background-size: 200% 200%;
  animation: gradientPulse 3s ease-in-out infinite;
  border: 2px solid rgba(50, 211, 153, 0.6);
  border-radius: 50px;
  padding: 1rem 2rem;
  box-shadow: 0 0 20px rgba(50, 211, 153, 0.3), 0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 2px 10px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.beta-badge-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(50, 211, 153, 0.5), 0 12px 35px rgba(0, 0, 0, 0.7),
    inset 0 2px 10px rgba(255, 255, 255, 0.15);
}

@keyframes gradientPulse {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.beta-badge-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.beta-badge-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.beta-badge-title {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.beta-badge-subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.beta-badge-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(50, 211, 153, 0.4);
  border-radius: 50px;
  animation: pulseRing 2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Legacy beta-badge styles removed - now using beta-badge-cta */

.beta-text {
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.beta-status {
  background: linear-gradient(45deg, #32d399, #4ade80);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(50, 211, 153, 0.4);
  animation: statusGlow 2s ease-in-out infinite alternate;
}

@keyframes statusGlow {
  from {
    box-shadow: 0 2px 8px rgba(50, 211, 153, 0.4);
  }
  to {
    box-shadow: 0 4px 12px rgba(50, 211, 153, 0.6);
  }
}

.beta-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.beta-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.beta-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.beta-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  color: #000000;
  border: 2px solid transparent;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(50, 211, 153, 0.3);
  align-self: flex-start;
  text-shadow: none;
}

.beta-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(50, 211, 153, 0.4);
  background: linear-gradient(135deg, #4ade80, var(--accent));
  border-color: #ffffff;
  color: #000000;
}

.beta-cta-primary:active {
  transform: translateY(0);
}

.cta-arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: #000000;
  font-weight: bold;
}

.beta-cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.beta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(50, 211, 153, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.feature-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: calc(50% - 0.5rem);
}

.beta-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.beta-graphic {
  position: relative;
}

.video-message-placeholder {
  width: 300px;
  height: 180px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a1d22 0%, #2d3748 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.beta-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, #0b0d10 0%, #1a1d22 50%, #121418 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-message-placeholder:hover .video-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.video-play-button {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(50, 211, 153, 0.3);
}

.video-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(50, 211, 153, 0.4);
}

.play-icon {
  color: var(--accent-contrast);
  font-size: 1.5rem;
  margin-left: 0.25rem;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.video-title {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.video-duration {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
}

.beta-countdown {
  text-align: center;
  color: white;
  margin-top: 2rem;
}

.countdown-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.time-unit {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  min-width: 60px;
}

.time-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: white;
}

.time-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.coming-soon-message {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Beta Banner */
@media (max-width: 1024px) {
  .beta-announcement-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .beta-cta-primary {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .beta-announcement {
    padding: 3rem 1rem; /* Maintain glow space on mobile */
  }

  .beta-announcement-container {
    gap: 2.5rem;
    padding: 0 1.5rem; /* Reduced but still enough for effects */
  }

  .beta-badge-main {
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
  }

  .beta-badge-title {
    font-size: 0.85rem;
  }

  .beta-badge-subtitle {
    font-size: 0.7rem;
  }

  .beta-actions {
    gap: 1.25rem;
  }

  .beta-cta-primary {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .beta-features {
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .feature-item {
    font-size: 0.95rem;
    min-width: calc(50% - 0.375rem);
    justify-content: center;
  }

  .beta-visual {
    gap: 2rem;
  }

  .video-message-placeholder {
    width: 280px;
    height: 168px;
  }

  .countdown-timer {
    gap: 0.75rem;
  }

  .time-unit {
    min-width: 55px;
    padding: 0.625rem 0.375rem;
  }

  .time-value {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .beta-announcement {
    padding: 1.5rem 1rem;
    overflow-x: hidden;
  }

  .beta-announcement-container {
    gap: 2rem;
    padding: 0 0.5rem;
    width: calc(100% - 1rem);
    max-width: none;
  }

  .beta-badge {
    margin-bottom: 1.25rem;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .beta-title {
    font-size: 1.875rem;
    margin-bottom: 0.875rem;
  }

  .beta-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .beta-actions {
    gap: 1rem;
  }

  .beta-cta-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .beta-features {
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem;
    text-align: center;
  }

  .feature-item {
    font-size: 0.9rem;
    min-width: 100%;
    justify-content: center;
  }

  .video-message-placeholder {
    width: 100%;
    max-width: calc(100vw - 3rem);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }

  .video-play-button {
    width: 3rem;
    height: 3rem;
  }

  .play-icon {
    font-size: 1.25rem;
  }

  .countdown-timer {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-around;
  }

  .time-unit {
    min-width: 0;
    flex: 1;
    max-width: calc(33.333% - 0.33rem);
    padding: 0.5rem 0.125rem;
  }

  .time-value {
    font-size: 1.125rem;
  }

  .time-label {
    font-size: 0.6rem;
  }

  .coming-soon-message {
    font-size: 1.125rem;
    margin-top: 1rem;
  }

  .beta-countdown {
    margin-top: 1.25rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .beta-announcement {
    padding: 1.25rem 0.75rem;
    overflow-x: hidden;
  }

  .beta-announcement-container {
    padding: 0 0.25rem;
    width: calc(100% - 0.5rem);
  }

  .beta-badge {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
  }

  .beta-title {
    font-size: 1.625rem;
    line-height: 1.1;
  }

  .beta-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .beta-cta-primary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .feature-item {
    font-size: 0.8rem;
  }

  .video-message-placeholder {
    max-width: calc(100vw - 2rem);
    height: auto;
    aspect-ratio: 16/9;
  }

  .countdown-timer {
    gap: 0.25rem;
    width: 100%;
    justify-content: space-around;
  }

  .time-unit {
    min-width: 0;
    flex: 1;
    max-width: calc(33.333% - 0.17rem);
    padding: 0.375rem 0.0625rem;
  }

  .time-value {
    font-size: 1rem;
  }

  .time-label {
    font-size: 0.55rem;
  }
}

/* News Page Article Cards */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-card .article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-category {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.article-date {
  color: var(--subtext);
  font-size: 0.875rem;
}

.article-card .article-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.article-card .article-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card .article-title a:hover {
  color: var(--accent);
}

.article-excerpt {
  color: var(--subtext);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-name {
  color: var(--text);
  font-size: 0.875rem;
}

.article-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--subtext);
}

/* News Page States */
.loading,
.error,
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--subtext);
  grid-column: 1 / -1;
}

.error {
  color: var(--destructive);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  text-align: center;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.pagination-dots {
  color: var(--subtext);
  padding: 0 0.5rem;
}

/* Mobile responsive styles for article cards */
@media (max-width: 768px) {
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
