/* CSS Variables - Dark theme as default */
:root {
  --primary-color: #32d399;
  --accent-color: #10b981;
  --surface-color: #1a1a1a;
  --hover-color: #2a2a2a;
  --border-color: #333333;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --btn-text-on-green: #000000; /* Black text for green buttons */

  /* Theme system variables - Dark theme default */
  --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;

  color-scheme: dark;
}

/* Light theme variables */
:root[data-theme="light"] {
  --bg: #fafbff;
  --surface: #ffffff;
  --muted: #f0f4ff;
  --text: #0f172a;
  --subtext: #475569;
  --accent: #00d084;
  --accent-contrast: #ffffff;
  --warning: #ff6b35;
  --border: #cbd5e1;
  --card: #ffffff;
  --hover-bg: #e2e8f0;
  --focus-ring: #3b82f6;

  color-scheme: light;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg, #000);
  color: var(--text, #ffffff);
  transition: background-color 0.3s ease, color 0.3s ease;
}
img {
  border: none;
  margin: 0;
  padding: 0;
}
a {
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
#wrapper-index {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-height: 100%;
  height: auto !important;
  text-align: left;
}

/* SECTION ONE */
#section-one {
  position: relative;
  background: url("../pics/ranking-area-bg.jpg") repeat-x;
  top: 0px;
  border-bottom: 2px solid #32d399;
  animation: scrollBackground 30s linear infinite;
  overflow: hidden;
}
@keyframes scrollBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
#section-one-inner {
  height: 100%;
  min-height: 650px;
}
#section-one-inner h1 {
  color: #32d399;
  font-family: "Josefin Sans", sans-serif;
  text-align: center;
  margin: 0;
  position: relative;
  top: 60px;
  font-size: clamp(20px, 3.5vw, 35px);
  transition: all 0.3s;
}
#stats-holder {
  position: relative;
  top: 130px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  transition: all 0.3s;
}
.casual-box,
.competitive-box,
.bar-league-box {
  display: block;
  width: 347px;
  height: 371px;
}
.casual-box img,
.competitive-box img,
.bar-league-box img {
  width: 100%;
}

/* SECTION TWO */
#section-two {
  position: relative;
  background: url("../pics/video-area-bg.jpg") repeat-x;
  top: 0px;
  border-bottom: 2px solid #32d399;
}
#section-two-inner {
  padding: 105px 0;
}
#section-two-inner h1 {
  font-family: "Josefin Sans", sans-serif;
  color: #fff;
  text-align: right;
  font-size: clamp(50px, 4.5vw, 60px);
  display: block;
  position: relative;
  max-width: 206px;
}
#section-two-inner h1::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  min-width: 277px;
  height: 100%;
  max-height: 272px;
  top: 90px;
  left: -30px;
  background: url("../pics/curved-arrow.png") no-repeat;
  z-index: 1;
}
#sec-two-content {
  display: flex;
  justify-content: space-between;
}
.video-holder img {
  width: clamp(330px, 49vw, 750px);
  /* This needs to be adjusted when the real video is added */
}

/* SECTION THREE */
#section-three {
  position: relative;
  top: 0px;
  border-bottom: 2px solid #32d399;
}
#section-three-inner {
  background: url("../pics/players-area-bg.jpg") no-repeat;
  background-size: 100% 100%;
  padding: 0 0 15px 0;
}
#sec-three-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}
#section-three-inner h1 {
  font-family: "Josefin Sans", sans-serif;
  color: #fff;
  font-size: clamp(22px, 4.5vw, 60px);
  display: block;
  position: relative;
  margin: 60px auto 0;
}
#section-three-inner h1 span {
  margin: 0 0 0 343px;
}
.globe-holder {
  text-align: center;
}
.globe-holder img {
  width: clamp(120px, 25vw, 340px);
}

#section-beta {
  background: #000;
  color: #fff;
  border-bottom: 2px solid #32d399;
  padding: 80px 0;
  text-align: center;
}

.beta-image {
  padding: 20px 0;
}

.beta-image img {
  max-width: 100%;
  height: auto;
  border: 10px solid #005727;
}

.beta-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.beta-text h1 {
  color: #ffffff;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(26px, 4vw, 48px);
}

.beta-text p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin: 20px 0;
}

.discord-btn {
  display: inline-block;
  background: #4752c4;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
  margin-top: 20px;
  transition: background 0.3s;
}

.discord-btn:hover {
  background: #414bb6;
}

.beta-image img {
  width: clamp(280px, 45vw, 500px);
}

#section-ladders {
  background: url("../pics/ranking-area-bg.jpg") repeat-x;
  padding: 60px 0;
  border-bottom: 2px solid #32d399;
}

#ladders-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.news-section {
  flex: 1;
  min-width: 300px;
  color: #fff;
  padding: 0 20px;
}

.news-section h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  color: #32d399;
  margin-bottom: 20px;
}

.news-container {
  background: #111;
  border: 1px solid #32d399;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(255, 170, 63, 0.15);
  transition: box-shadow 0.3s;
  width: 100%;
}

.news-container:hover {
  box-shadow: 0 0 12px rgba(255, 170, 63, 0.3);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
}
.ladder-section {
  flex: 1;
  min-width: 300px;
  padding: 0 20px;
}

.ladder-component {
  background: #111;
  border: 1px solid #32d399;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(255, 170, 63, 0.15);
  margin-top: 10px;
}

.ladder-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: #000;
  color: #32d399;
  border: 1px solid #32d399;
  padding: 8px 16px;
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 2vw, 16px);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background: #32d399;
  color: #000;
}

.ladder-boxes {
  display: flex;
  justify-content: center;
}

.ladder-tab-content {
  display: none;
  width: 100%;
  text-align: center;
}

.ladder-box img {
  width: 100%;
  max-width: 347px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Universal box-sizing fix to prevent overflow issues */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Philippines Page Custom Styling */

.section-light {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
}

.section-dark {
  background-color: #111;
  color: #fff;
  padding: 60px 20px;
}

.section-highlight {
  background-color: #32d399;
  color: #000;
  padding: 60px 20px;
}

.section-heading {
  color: #32d399;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 20px;
  text-align: center;
}

.page-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(26px, 4vw, 50px);
  margin-bottom: 20px;
  color: #32d399;
}

.section-paragraph {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
  text-align: center;
}

.section-list {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  padding-left: 20px;
}

.button-dark {
  background-color: #000;
  color: #32d399;
  padding: 12px 30px;
  display: inline-block;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s ease;
  text-decoration: none;
}

.button-dark:hover {
  background-color: #222;
  color: #fff;
}

/* Responsive two-column layout for large screens */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.flex-col {
  flex: 1 1 45%;
  min-width: 300px;
}

.left-align {
  text-align: left;
}

.call-section {
  color: #000;
}

.call-heading {
  color: #000;
}

.call-text {
  color: #000;
}

.button-wrapper {
  margin-top: 30px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .flex-row {
    flex-direction: column;
  }

  .flex-col {
    width: 100%;
  }
}

/* RESPONSIVE CSS */
@media screen and (max-width: 810px) {
  #section-one-inner {
    min-height: 910px;
  }
  #section-one-inner h1 {
    top: 40px;
  }
  #stats-holder {
    top: 80px;
  }
  #sec-two-content {
    justify-content: space-around;
  }
  #section-two-inner h1::before {
    top: 60px;
    left: -10px;
    background-size: 100% 100%;
  }
  #section-three-inner h1 {
    margin: 40px auto 0;
  }
  #section-three-inner h1 span {
    margin: 0 0 0 208px;
  }
}

@media screen and (max-width: 450px) {
  #section-one-inner {
    min-height: 1300px;
  }
  #section-one-inner h1 {
    top: 30px;
  }
  #stats-holder {
    top: 60px;
  }
  #sec-two-content {
    flex-direction: column;
  }
  #section-two-inner {
    padding: 50px 0;
  }
  #section-two-inner h1 {
    max-width: 100%;
    text-align: center;
    margin: 0 0 20px 0;
  }
  #section-two-inner h1::before {
    display: none;
  }
  .video-holder {
    text-align: center;
  }
  #section-three-inner {
    padding: 20px 0 0 0;
  }
  #section-three-inner h1 {
    margin: 10px auto 0;
  }
  #section-three-inner h1 span {
    margin: 0 0 0 126px;
  }
  .ladder-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    min-width: 80px;
  }

  .news-container {
    padding: 15px;
  }
}

/* =============================================================================
   DASHBOARD STYLES
   ============================================================================= */

/* Pool Stats Card Styling */
.pool-stats-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  will-change: border-color, box-shadow;
}

.pool-stats-card:hover {
  border-color: #32d399;
  box-shadow: 0 4px 20px rgba(50, 211, 153, 0.1);
}

.pool-stats-card .card-header {
  margin-bottom: 24px;
}

.pool-stats-card .card-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main Stats Layout */
.stats-main-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* Left Column - Core Statistics */
.stats-left-column {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--hover-color);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  will-change: border-color, background-color;
}

.stat-box:hover {
  border-color: var(--primary-color);
  background: rgba(50, 211, 153, 0.05);
}

.stat-box.accent {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: #000 !important;
}

.stat-box .stat-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-box.accent .stat-value {
  color: #000 !important;
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box.accent .stat-label {
  color: rgba(0, 0, 0, 0.8) !important;
}

/* Right Column - Info Boxes */
.stats-right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-box {
  background: var(--hover-color);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
  flex: 1;
  transition: all 0.3s ease;
  will-change: border-color, background-color;
}

.info-box:hover {
  border-color: var(--primary-color);
  background: rgba(50, 211, 153, 0.05);
}

.box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.box-icon {
  font-size: 1.1rem;
}

.box-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.box-content .primary-stat {
  text-align: center;
  margin-bottom: 12px;
}

.primary-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.primary-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight .primary-value {
  color: var(--accent-color);
}

.secondary-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.rank-info,
.tier-info,
.streak-info {
  text-align: center;
  flex: 1;
}

.rank-number,
.tier-name,
.streak-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.rank-label,
.tier-label,
.streak-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Additional Stats Row */
.additional-stats {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.additional-stats .stat-box {
  flex: 1;
}

.additional-stats .stat-box:hover {
  border-color: var(--primary-color);
  background: rgba(50, 211, 153, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-main-layout {
    flex-direction: column;
    gap: 16px;
  }

  .stats-left-column {
    grid-template-columns: 1fr 1fr;
  }

  .additional-stats {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .stats-left-column {
    grid-template-columns: 1fr;
  }

  .secondary-stats {
    flex-direction: column;
    gap: 4px;
  }
}

/* =============================================================================
   BUTTON CONTRAST FIXES
   ============================================================================= */

/* Ensure ALL green buttons have dark text for contrast */
button[style*="#32d399"],
.btn[style*="#32d399"],
*[style*="background: #32d399"],
*[style*="background-color: #32d399"],
*[style*="background: linear-gradient"] {
  color: #000 !important;
}

button[style*="#32d399"]:hover,
.btn[style*="#32d399"]:hover,
*[style*="background: #32d399"]:hover,
*[style*="background-color: #32d399"]:hover,
*[style*="background: linear-gradient"]:hover {
  color: #000 !important;
}

/* Additional selectors for GREEN button patterns only */
.challenge-btn,
.all-news-btn,
.detailed-stats-btn,
.view-all-btn,
.view-all-link,
.view-all,
.cta-text,
.welcome-cta,
.welcome-secondary,
button.primary,
.btn-primary {
  color: #000 !important;
}

/* Quick Actions Widget - Green background buttons with BLACK text for contrast */
.quick-actions-widget .action-btn.primary {
  color: #000000 !important;
  background: linear-gradient(135deg, #32d399, #059669) !important;
  border: 2px solid #32d399 !important;
  font-weight: 600 !important;
}

.quick-actions-widget .action-btn.primary .btn-label,
.quick-actions-widget .action-btn.primary .btn-desc,
.quick-actions-widget .action-btn.primary .btn-text {
  color: #000000 !important;
  border: none !important;
  background: none !important;
}

.welcome-cta {
  color: #000000 !important;
  background: linear-gradient(135deg, #32d399, #059669) !important;
  border: 2px solid #32d399 !important;
  font-weight: 600 !important;
}

.welcome-cta .cta-text,
.welcome-cta .cta-icon {
  color: #000000 !important;
  border: none !important;
  background: none !important;
}

.quick-actions-widget .action-btn.primary:hover {
  color: #000000 !important;
  background: linear-gradient(135deg, #4ade80, #32d399) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(50, 211, 153, 0.3) !important;
}

.quick-actions-widget .action-btn.primary:hover .btn-label,
.quick-actions-widget .action-btn.primary:hover .btn-desc,
.quick-actions-widget .action-btn.primary:hover .btn-text {
  color: #000000 !important;
  border: none !important;
  background: none !important;
}

.welcome-cta:hover {
  color: #000000 !important;
  background: linear-gradient(135deg, #4ade80, #32d399) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(50, 211, 153, 0.3) !important;
}

.welcome-cta:hover .cta-text,
.welcome-cta:hover .cta-icon {
  color: #000000 !important;
  border: none !important;
  background: none !important;
}

/* News Preview Card - Fix View All button contrast */
.news-preview-card .view-all-link {
  color: #32d399 !important;
  background: rgba(50, 211, 153, 0.1) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid #32d399 !important;
}

.news-preview-card .view-all-link:hover {
  color: #000000 !important;
  background: #32d399 !important;
  border-color: #32d399 !important;
}

/* KOTH Card - Dark theme button styling - FORCE VISIBLE TEXT */
.koth-card .card-footer,
.koth-footer {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
  border-top: 1px solid #333 !important;
  padding: 1rem !important;
}

.koth-card .action-buttons,
.koth-action-buttons {
  display: flex !important;
  gap: 0.75rem !important;
  width: 100% !important;
  justify-content: center !important;
}

.koth-card .action-btn,
.koth-card .action-btn.primary,
.koth-card .action-btn.secondary,
.koth-btn,
.koth-btn.primary,
.koth-btn.secondary {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #666 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  max-width: 200px !important;
  font-size: 0.875rem !important;
}

.koth-card .action-btn:hover,
.koth-card .action-btn.primary:hover,
.koth-card .action-btn.secondary:hover,
.koth-btn:hover,
.koth-btn.primary:hover,
.koth-btn.secondary:hover {
  background: rgba(50, 211, 153, 0.15) !important;
  color: #32d399 !important;
  border-color: #32d399 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(50, 211, 153, 0.2) !important;
}

.koth-btn-icon {
  font-size: 1.2rem !important;
}

.koth-btn-text {
  font-size: 0.9rem !important;
  text-align: center !important;
}

/* Trophies Card - Dark theme button styling - FORCE VISIBLE TEXT */
.trophies-card .card-footer,
.trophies-footer {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
  border-top: 1px solid #333 !important;
  padding: 1rem !important;
}

.trophies-card .action-buttons,
.trophies-action-buttons {
  display: flex !important;
  gap: 0.75rem !important;
  width: 100% !important;
  justify-content: center !important;
}

.trophies-card .action-btn,
.trophies-card .action-btn.primary,
.trophies-card .action-btn.secondary,
.trophies-btn,
.trophies-btn.primary,
.trophies-btn.secondary {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #666 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  max-width: 200px !important;
  font-size: 0.875rem !important;
}

.trophies-card .action-btn:hover,
.trophies-card .action-btn.primary:hover,
.trophies-card .action-btn.secondary:hover,
.trophies-btn:hover,
.trophies-btn.primary:hover,
.trophies-btn.secondary:hover {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.2) !important;
}

.trophies-btn-icon {
  font-size: 1.2rem !important;
}

.trophies-btn-text {
  font-size: 0.9rem !important;
  text-align: center !important;
}

/* Gradient buttons */
*[style*="linear-gradient(45deg, #32d399"],
*[style*="linear-gradient(90deg, #32d399"],
*[style*="linear-gradient(135deg, #32d399"],
*[style*="#4ade80"] {
  color: #000 !important;
}

/* CSS Variable based green buttons */
*[style*="var(--primary-color)"],
*[style*="var(--accent-color)"] {
  color: #000 !important;
}

/* =============================================================================
   LIGHT THEME OVERRIDES
   ============================================================================= */

/* Basic Light Theme Section Backgrounds */
:root[data-theme="light"] #section-one {
  background: linear-gradient(135deg, var(--bg) 0%, var(--muted) 100%),
    url("../pics/ranking-area-bg.jpg") repeat-x;
  background-blend-mode: overlay;
}

:root[data-theme="light"] #section-two {
  background: linear-gradient(135deg, var(--surface) 0%, var(--muted) 100%),
    url("../pics/video-area-bg.jpg") repeat-x;
  background-blend-mode: overlay;
}

:root[data-theme="light"] #section-three {
  background: linear-gradient(135deg, var(--muted) 0%, var(--surface) 100%);
}

:root[data-theme="light"] #section-three-inner {
  background: url("../pics/players-area-bg.jpg") no-repeat,
    linear-gradient(135deg, var(--bg) 0%, var(--muted) 100%);
  background-blend-mode: overlay;
}

/* Light Theme Section Headers */
:root[data-theme="light"] #section-one-inner h1,
:root[data-theme="light"] #section-two-inner h1,
:root[data-theme="light"] #section-three-inner h1 {
  color: var(--text) !important;
}

:root[data-theme="light"] #section-beta {
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--muted) 100%
  ) !important;
  color: var(--text) !important;
}

:root[data-theme="light"] #section-ladders {
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%),
    url("../pics/ranking-area-bg.jpg") repeat-x;
  background-blend-mode: overlay;
}

/* Light Theme News and Components */
:root[data-theme="light"] .news-container {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

:root[data-theme="light"] .ladder-component {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

/* Light Theme Text Colors */
:root[data-theme="light"] .beta-text h1,
:root[data-theme="light"] .beta-text p,
:root[data-theme="light"] .news-section h2,
:root[data-theme="light"] .section-heading,
:root[data-theme="light"] .page-title {
  color: var(--text) !important;
}

:root[data-theme="light"] .section-paragraph,
:root[data-theme="light"] .section-list {
  color: var(--subtext) !important;
}
