@import "./theme.css";
@import "tailwindcss";
@plugin "flowbite/plugin";
@source "../../../node_modules/flowbite";

@theme {
  --font-sans: var(--theme-font-sans);
  --color-potm-sand: var(--theme-surface-soft);
  --color-potm-clay: var(--theme-brand-primary);
  --color-potm-charcoal: var(--theme-text-dark);
  --color-potm-olive: var(--theme-brand-secondary);
  --color-potm-cream: var(--theme-surface-light);
}

@layer base {
  html {
    font-family: var(--theme-font-sans);
  }

  body {
    background: var(--theme-page-bg);
  }
}

@layer components {
  .page-shell {
    color: var(--theme-text-primary);
  }

  .page-section {
    max-width: var(--theme-container-max);
    margin-inline: auto;
    padding-inline: var(--theme-space-container-x);
    padding-block: var(--theme-space-section-y);
  }

  @media (min-width: 64rem) {
    .page-section {
      padding-block: var(--theme-space-section-y-lg);
    }
  }

  .section-heading {
    font-family: var(--theme-font-display);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--theme-text-primary);
  }

  .section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid var(--theme-border-brand);
    background: color-mix(in srgb, var(--theme-surface-dark) 88%, transparent);
    color: var(--theme-text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
  }

  .theme-card {
    border-radius: var(--theme-radius-xl);
    padding: var(--theme-space-card);
  }

  .theme-card-tight {
    border-radius: var(--theme-radius-lg);
    padding: var(--theme-space-card-tight);
  }

  .hero-glow {
    background: var(--theme-hero-glow);
  }

  .theme-nav {
    background: color-mix(in srgb, var(--theme-bg-bottom) 80%, transparent);
    border-color: var(--theme-border-light);
  }

  .theme-nav-link {
    color: var(--theme-text-secondary);
  }

  .theme-nav-link:hover {
    color: var(--theme-text-primary);
    background: var(--theme-surface-overlay);
  }

  .theme-dropdown-panel {
    background: color-mix(in srgb, var(--theme-bg-bottom) 96%, #000 4%);
    border-color: color-mix(in srgb, var(--theme-border-light) 85%, white 15%);
  }

  .theme-badge {
    border: 1px solid var(--theme-border-brand);
    background: color-mix(in srgb, var(--theme-brand-primary) 10%, transparent);
    color: var(--theme-text-primary);
  }

  .theme-btn-primary {
    background: var(--theme-brand-primary);
    color: var(--theme-text-dark);
    transition: background var(--theme-transition-fast), color var(--theme-transition-fast), transform var(--theme-transition-fast);
  }

  .theme-btn-primary:hover {
    background: var(--theme-brand-primary-strong);
  }

  .theme-btn-secondary {
    border: 1px solid var(--theme-border-soft);
    color: var(--theme-text-primary);
    transition: background var(--theme-transition-fast), color var(--theme-transition-fast), border-color var(--theme-transition-fast);
  }

  .theme-btn-secondary:hover {
    background: var(--theme-surface-overlay);
  }

  .theme-btn-light {
    background: var(--theme-surface-soft);
    color: var(--theme-text-dark);
    transition: background var(--theme-transition-fast), color var(--theme-transition-fast);
  }

  .theme-btn-light:hover {
    background: #fff;
  }

  .theme-text-primary {
    color: var(--theme-text-primary);
  }

  .theme-text-secondary {
    color: var(--theme-text-secondary);
  }

  .theme-text-muted {
    color: var(--theme-text-muted);
  }

  .theme-text-dark {
    color: var(--theme-text-dark);
  }

  .theme-text-dark-muted {
    color: var(--theme-text-dark-muted);
  }

  .theme-text-brand-soft {
    color: var(--theme-brand-soft);
  }

  .theme-border {
    border-color: var(--theme-border-light);
  }

  .theme-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--theme-brand-primary), var(--theme-brand-secondary));
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  }

  .grain-panel {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--theme-surface-light) 96%, transparent), color-mix(in srgb, var(--theme-surface-soft) 92%, transparent)),
      radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.35), transparent 24%);
    color: var(--theme-text-dark);
    border-color: var(--theme-border-light-panel);
    box-shadow:
      var(--theme-shadow-light),
      inset 0 1px 0 rgb(255 255 255 / 0.4);
  }

  .dark-panel {
    background:
      linear-gradient(180deg, var(--theme-surface-dark-strong), var(--theme-surface-dark)),
      radial-gradient(circle at top, color-mix(in srgb, var(--theme-brand-primary) 18%, transparent), transparent 40%);
    border-color: var(--theme-border-light);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.05),
      var(--theme-shadow-dark);
  }

  .accent-panel {
    background: color-mix(in srgb, var(--theme-brand-primary) 10%, transparent);
    border-color: var(--theme-border-brand);
  }

  .brand-panel {
    background: var(--theme-brand-primary);
    color: var(--theme-text-dark);
  }

  .secondary-panel {
    background: var(--theme-brand-secondary);
    color: var(--theme-text-primary);
  }

  .dark-solid-panel {
    background: color-mix(in srgb, var(--theme-bg-mid) 88%, transparent);
    border-color: var(--theme-border-light);
  }

  .home-sports-slide {
    animation: home-sports-slider calc(var(--slide-count) * 5s) infinite;
    animation-delay: calc(var(--slide-index) * 5s);
    opacity: 0;
  }
}

@keyframes home-sports-slider {
  0% {
    opacity: 1;
  }

  10% {
    opacity: 1;
  }

  16% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
