/* ============================================================
   INDEX PAGE — RESET TO MATCH SITE STYLE (OWNERS.CSS FAMILY)
   ============================================================ */

/* ---------------------------------------
   Page Background + Typography
--------------------------------------- */
.v3-body {
  background: #ffffff;
  color: #0f172a;

}

/* ---------------------------------------
   Top Header (Ticker)
--------------------------------------- */

/* Center the ticker content */
#v3-owner-ticker-content {
  display: flex;
  justify-content: center;     /* ⭐ CENTERED */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
}

/* Individual owner item */
.ticker-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Dot uses owner primary color */
.ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

/* Owner name */
.ticker-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

/* Points */
.ticker-pts {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}


/* ---------------------------------------
   Navigation (Dark Bar)
--------------------------------------- */
.v3-main-nav {
  background: #000;
  border-bottom: 1px solid #1e293b;
}

.v3-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v3-nav-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.v3-nav-hamburger {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1.4rem;
  display: none;
}

.v3-nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.v3-nav-links li a {
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.v3-nav-links li a:hover {
  background: #1e293b;
}

/* Mobile nav */
@media (max-width: 768px) {
  .v3-nav-hamburger {
    display: block;
  }
  .v3-nav-links {
    display: none;
    flex-direction: column;
    margin-top: 8px;
    background: #0f172a;
    border-radius: 8px;
    padding: 10px;
  }
  .v3-nav-links.open {
    display: flex;
  }
}

/* ---------------------------------------
   Dashboard Grid (White Background)
--------------------------------------- */
.v3-dashboard-wrapper {
  background: #ffffff;
  padding: 20px 0 40px;
}

.v3-dashboard-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .v3-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------
   Columns
--------------------------------------- */
.v3-col-left,
.v3-col-center,
.v3-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sticky right column */
.v3-sticky-right {
  position: sticky;
  top: 90px;
}

/* ---------------------------------------
   Modules (White Cards)
--------------------------------------- */
.v3-module,
.index-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.v3-module-header {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

/* ---------------------------------------
   Quick Access (Left Column)
--------------------------------------- */
.v3-quick-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v3-accordion-group {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.v3-accordion-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.v3-accordion-btn.active {
  background: #f1f5f9;
}

.v3-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
}

.v3-accordion-content.open {
  max-height: 600px;
  padding: 10px 14px 14px;
}

.v3-qa-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0f172a;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 6px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.v3-qa-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.v3-quick-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
}

.v3-quick-stat-label {
  color: #64748b;
}

.v3-quick-stat-val {
  color: #0f172a;
  font-weight: 700;
}

/* ---------------------------------------
   Featured Games / GOAT
--------------------------------------- */
.v3-gotw-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v3-goat-shell {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.v3-goat-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
}


/* ============================================================
   DESKTOP STANDINGS TABLE — CLEAN + READABLE
   ============================================================ */
/* ============================================================
   MOBILE — show stacked cards, hide desktop table
   ============================================================ */
@media (max-width: 640px) {

  /* Hide desktop table entirely */
  .v3-standings-table {
    display: none !important;
  }

  * Show mobile cards */
  .v3-standings-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    padding: 4px 0;
  }

  .v3-standings-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--owner-color);
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Owner name */
  .v3-standings-card-owner {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 4px;
  }

  /* Stat rows */
  .v3-standings-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 0;
  }

  .v3-standings-card-label {
    color: #64748b;
    font-weight: 600;
  }

  .v3-standings-card-value {
    font-weight: 800;
    color: #0f172a;
  }

  .v3-standings-card-value.pos {
    color: #22c55e;
  }

  .v3-standings-card-value.neg {
    color: #ef4444;
  }
}

/* ============================================================
   DESKTOP — show table, hide mobile cards
   ============================================================ */
@media (min-width: 641px) {

  /* Show desktop table */
  .v3-standings-table {
    display: table !important;
  }

  /* Hide mobile stacked cards */
  .v3-standings-mobile {
    display: none !important;
  }
}


@media (min-width: 641px) {
  .v3-standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
  }

  .v3-standings-table thead th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 800;
    color: #334155;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }

  .v3-standings-table tbody tr {
    transition: background 0.15s ease;
  }

  .v3-standings-table tbody tr:hover {
    background: #f1f5f9;
  }

  .v3-standings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
  }

  .v3-standings-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* Owner name column */
  .v3-owner-name-cell a {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
  }

  .v3-owner-name-cell a:hover {
    text-decoration: underline;
  }

  /* Total points */
  .v3-bold-pts {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
  }

  /* Poll movement colors */
  .v3-pos {
    color: #22c55e;
    font-weight: 800;
  }

  .v3-neg {
    color: #ef4444;
    font-weight: 800;
  }

  .v3-text-muted {
    color: #94a3b8;
    font-weight: 700;
  }

  /* Column width control */
  .v3-standings-table th:nth-child(1),
  .v3-standings-table td:nth-child(1) {
    width: 32%;
  }

  .v3-standings-table th:nth-child(2),
  .v3-standings-table td:nth-child(2),
  .v3-standings-table th:nth-child(3),
  .v3-standings-table td:nth-child(3),
  .v3-standings-table th:nth-child(4),
  .v3-standings-table td:nth-child(4),
  .v3-standings-table th:nth-child(5),
  .v3-standings-table td:nth-child(5) {
    width: 17%;
    text-align: right;
  }
}

/* ---------------------------------------
   League Pulse
--------------------------------------- */
.v3-pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.v3-pulse-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pulse-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pulse-value a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

/* ---------------------------------------
   Weekly Mini Cards
--------------------------------------- */
.v3-weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v3-week-dropdown {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.9rem;
  padding: 6px 8px;
}

.v3-toggle-label {
  font-size: 0.85rem;
  color: #334155;
}

#v3-mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.v3-empty-state {
  font-size: 0.9rem;
  color: #64748b;
}

/* ---------------------------------------
   Badge Leaderboards
--------------------------------------- */
#badge-leaderboard-section .owner-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Badge Leaderboard Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

/* Badge Card */
.badge-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Title */
.badge-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Owner */
.badge-card-owner {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}

.badge-owner-link {
  color: #0f172a;
  text-decoration: none;
}

.badge-owner-link:hover {
  text-decoration: underline;
}

/* Value */
.badge-card-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

/* Description */
.badge-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
  margin-top: 4px;
}


/* ---------------------------------------
   Footer
--------------------------------------- */
.index-footer {
  background: #000;
  color: #fff;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}

.index-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #64748b;
}

.index-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0;
}

.index-footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.index-footer-links a:hover {
  text-decoration: underline;
}

.index-footer-copy {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------------------------------------
   Animations
--------------------------------------- */
.fade-in {
  animation: fadeIn 0.25s ease-out;
}

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

