/* =========================================
   TheBigLeagues — Luxury Tycoon Theme
   Dark base with gold accents.
   Overrides the light theme for this page only.
   ========================================= */

/* ----- Theme Override ----- */
body.theme-bigleagues {
  --color-bg: #0c0c0f;
  --color-bg-card: #13131a;
  --color-text: #e8e4dc;
  --color-text-secondary: #9e9a90;
  --color-text-muted: #6b6760;
  --color-text-faint: #3a3835;
  --color-accent: #d4a44a;
  --color-accent-hover: #e8c86e;
  --color-border: #1e1e28;
  --color-border-hover: #2a2a36;
  --color-shadow: rgba(0, 0, 0, 0.4);

  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Grain texture for richness */
body.theme-bigleagues::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ----- Header Override ----- */
body.theme-bigleagues .site-header {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}

body.theme-bigleagues .site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

body.theme-bigleagues .logo {
  color: var(--color-text);
}

body.theme-bigleagues .logo-dot {
  color: var(--color-accent);
}

body.theme-bigleagues .nav-link {
  color: var(--color-text-muted);
}

body.theme-bigleagues .nav-link:hover {
  color: var(--color-text);
}

body.theme-bigleagues .nav-link.active {
  color: var(--color-accent);
}

body.theme-bigleagues .dropdown {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

body.theme-bigleagues .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.theme-bigleagues .dropdown-icon--cyan {
  background: rgba(212, 164, 74, 0.12);
  color: var(--color-accent);
}

body.theme-bigleagues .dropdown-name {
  color: var(--color-text);
}

body.theme-bigleagues .dropdown-desc {
  color: var(--color-text-muted);
}

body.theme-bigleagues .dropdown-tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

body.theme-bigleagues .toggle-bar {
  background: var(--color-text-secondary);
}

/* Mobile nav override */
@media (max-width: 768px) {
  body.theme-bigleagues .main-nav {
    background: var(--color-bg);
  }
}

/* ----- Hero ----- */

.bl-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-2xl);
  overflow: hidden;
}

/* Radial glow behind logo */
.bl-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 164, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bl-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.bl-logo {
  width: 150px;
  height: 150px;
  border-radius: 32px;
  object-fit: cover;
  animation: fade-in-up 0.6s var(--ease-out-expo) 0.1s both;
  filter: drop-shadow(0 8px 32px rgba(212, 164, 74, 0.15));
}

/* Title */
.bl-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-text);
  line-height: 1.05;
  animation: fade-in-up 0.5s var(--ease-out-expo) 0.25s both;
}

/* Meta pills */
.bl-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: fade-in-up 0.5s var(--ease-out-expo) 0.4s both;
}

.bl-meta-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.bl-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-faint);
}

/* Tagline */
.bl-tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 380px;
  line-height: 1.65;
  animation: fade-in-up 0.5s var(--ease-out-expo) 0.5s both;
}

/* CTA — Gold treatment */
.bl-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #0c0c0f;
  background: linear-gradient(135deg, #d4a44a, #e8c86e);
  border: none;
  border-radius: var(--radius-pill);
  animation: fade-in-up 0.5s var(--ease-out-expo) 0.6s both;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out);
}

.bl-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 164, 74, 0.25);
}

.bl-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

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

/* ----- Features — Empire Stats ----- */

.bl-features {
  padding: var(--space-3xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.bl-features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.bl-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2xl);
}

.bl-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bl-stat {
  background: var(--color-bg-card);
  padding: var(--space-xl) var(--space-lg);
  transition: background var(--duration-base) var(--ease-out);
}

.bl-stat:hover {
  background: #16161f;
}

.bl-stat-number {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.bl-stat-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.bl-stat-desc {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----- Footer ----- */

.bl-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

.bl-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bl-footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bl-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--duration-base) var(--ease-out);
}

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

.bl-footer-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.bl-footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-faint);
}

.bl-footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-faint);
  letter-spacing: 0.5px;
}

/* ----- Responsive ----- */

@media (max-width: 768px) {
  .bl-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bl-footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .bl-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }
}

/* ----- Dollar Drop Effect ----- */

.dollar-drop {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 28px;
  line-height: 1;
  user-select: none;
  animation: dollar-fall 1.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  filter: drop-shadow(0 2px 8px rgba(212, 164, 74, 0.4));
}

@keyframes dollar-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  15% {
    transform: translateY(-18px) rotate(-8deg) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(180px) rotate(25deg) scale(0.6);
  }
}

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