/* ==========================================================
   SAIYAN.COM — PREMIUM ROYAL BLUE THEME (MEDIUM INTENSITY)
   PART 1 — GLOBALS / BACKGROUND / NAVBAR
   ========================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --bg: #020617;               /* deep midnight blue */
  --bg-alt: #0a1124;
  --card: #0a1226;
  --card-soft: #0d1530;

  --accent: #33ff00;           /* royal blue */
  --accent-soft: #00ff2a;      /* medium cyan */
  --accent-dark: #05ff2f;

  --text-main: #e6f0ff;
  --text-muted: #8ea0c0;

  --border-soft: rgba(148,163,184,0.35);
  --border-strong: rgba(148,163,184,0.7);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --transition-fast: 140ms ease-out;
  --transition-med: 240ms ease-out;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   BACKGROUND ANIMATIONS
   ========================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(51, 255, 0, 0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 219, 110, 0.25), transparent 60%),
    linear-gradient(160deg, #01251c, #022e13);
  z-index: -3;
}

/* AURA */
.bg-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 255, 85, 0.22), transparent 70%);
  animation: auraPulse 7s ease-in-out infinite;
  z-index: -2;
  filter: blur(10px);
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* SPOTLIGHT */
.bg-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59,170,245,0.18), #020617 85%);
  animation: rotateLight 22s linear infinite;
  filter: blur(70px);
  z-index: -1;
}

@keyframes rotateLight {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* PARTICLES */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59,170,245,0.9);
  width: 14px;
  height: 14px;
  box-shadow: 0 0 20px rgba(59,170,245,1);
  animation: floatUp linear infinite;
  opacity: 0.85;
}

@keyframes floatUp {
  0%   { transform: translateY(20vh) scale(0.6); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-120vh) scale(1); opacity: 0; }
}

/* ==========================================================
   NAVBAR
   ========================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.61),
    rgba(0, 0, 0, 0.61)
  );
  border-bottom: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #3baaf5, #1d4ed8 70%);
  border: 2px solid #dbeafe;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--accent-soft);
}

.nav-center {
  display: flex;
  gap: 14px;
}

.nav-pill {
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-pill:hover {
  color: var(--text-main);
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.55);
  transform: translateY(-2px);
}

.nav-pill.active {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-color: transparent;
  box-shadow: 0 0 26px rgba(29,78,216,0.8);
}

/* Social Icons */
.nav-right {
  display: flex;
  gap: 12px;
}

.nav-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.336);
  border: 1px solid rgba(148,163,184,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: var(--transition-fast);
}

.nav-social-icon:hover {
  transform: translateY(-2px);
  background: rgba(15,23,42,0.92);
  border-color: rgba(148,163,184,0.65);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* ==========================================================
   HOME PAGE — HERO / BUTTONS / STREAM CARDS
   ========================================================== */

.home-main {
  padding: 60px 16px 90px;
  text-align: center;
}

/* HERO HEADING */
.hero-heading {
  font-size: clamp(44px, 6.8vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-heading span {
  color: var(--accent-soft);
}

/* SUBTITLE */
.hero-subtitle {
  margin-top: 18px;
  max-width: 680px;
  margin-inline: auto;
  font-size: 17px;
  color: var(--text-muted);
}

/* HERO BUTTONS */
.hero-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary {
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #020617;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-med);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 0 26px rgba(29,78,216,0.8);
}

.btn {
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(10,18,38,0.8);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(10,18,38,0.95);
}

/* TOTAL GIVEN CARD */
.hero-total-card {
  margin: 54px auto 0;
  max-width: 500px;
  padding: 32px 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.25), transparent 70%),
    rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 28px 65px rgba(0,0,0,0.55);
}

.hero-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.hero-total-value {
  margin-top: 12px;
  font-size: 38px;
  font-weight: 700;
}

.hero-total-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* STREAM CARDS */
.stream-cards {
  margin-top: 70px; /* more spacing from total card */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.stream-card {
  width: 280px;
  padding: 32px 26px;          /* more top padding */
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(148,163,184,0.45);
  text-align: center;
  transition: var(--transition-med);
  box-shadow: 0 24px 55px rgba(0,0,0,0.45);
}

.stream-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}

.stream-logo {
  width: 94px;                 /* slightly bigger */
  height: 94px;
  object-fit: contain;
  margin-bottom: 16px;         /* better spacing */
}

.stream-title {
  font-size: 20px;
  font-weight: 600;
}

.stream-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}


/* FIXED BUTTON POSITION INSIDE STREAM CARD */
.stream-card .btn-primary {
  margin-top: 26px !important; /* move UP */
  display: inline-block;
  padding: 14px 34px;
  font-size: 13px;
  border-radius: 999px;
}

/* ==========================================================
   LEADERBOARD — PREMIUM BLUE (MEDIUM VERSION)
   Balanced spacing / Medium table
   ========================================================== */

.lb-main {
  max-width: 1300px;
  margin: 50px auto;
  padding: 30px;
}

/* TITLE */
.lb-title {
  font-size: clamp(46px, 6vw, 58px);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.lb-subtitle {
  text-align: center;
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-muted);
}

/* TABS */
.lb-tabs {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lb-tab {
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lb-tab:hover {
  transform: translateY(-2px);
}

.lb-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-color: transparent;
  color: #020617;
  box-shadow: 0 0 22px rgba(59,170,245,0.6);
}

/* COMPETITION LABEL */
.lb-competition {
  margin-top: 32px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lb-section-label {
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-size: 14px;
}


.warning-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.warning-card p {
  color: #fecaca;
  font-size: 14px;
}

/* PODIUM */
.podium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}

.podium-card {
  padding: 26px 22px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  text-align: center;
  transition: var(--transition-med);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}

.podium-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #e5f2ff, #93c5fd, #1d4ed8);
  font-size: 30px;
  font-weight: 700;
  color: #020617;
  margin: 14px auto;
  border: 3px solid #e5f2ff;
}

.podium-name {
  font-size: 20px;
  font-weight: 600;
}

.podium-tag {
  font-size: 14px;
  color: var(--text-muted);
}

/* METRICS */
.metric {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgb(0, 255, 76);
  margin-top: 12px;
}

.metric-title {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-value {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
}

/* TABLE CARD */
.lb-table-card {
  margin-top: 34px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  overflow: hidden;
  padding: 8px;
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* TABLE */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.leaderboard-table th {
  padding: 14px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.leaderboard-table td {
  padding: 14px 20px;
  font-size: 15px;
}

.leaderboard-table tr {
  height: 60px;
  transition: var(--transition-fast);
}

.leaderboard-table tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.96);
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding: 22px;
  background: #000000;
  border-top: 1px solid rgba(148,163,184,0.25);
}

.footer-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  align-items: center;
}

.footer-links a {
  margin-left: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-social-link:hover {
  color: var(--accent-soft);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
  .podium-row {
    grid-template-columns: 1fr;
  }

  .lb-table-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .leaderboard-table {
    min-width: 600px;
  }

  .site-footer {
    padding: 18px;
  }
}

/* NAVBAR LOGO FIX */
.nav-logo-image {
  width: 42px;           /* fixed size */
  height: 42px;
  border-radius: 50%;
  overflow: hidden;      /* prevents overflow */
  border: 2px solid #dbeafe;
  box-shadow: 0 0 12px rgba(59,170,245,0.8);
  flex-shrink: 0;         /* prevents flex from stretching it */
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* makes portrait fit perfectly */
  display: block;
}
