/* SportPulse Brand Identity Customizations */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700&display=swap');

:root {
  /* Primary Palette */
  --pulse-teal: #00D1C1;
  --pulse-teal-hover: #00b8a9;
  --deep-charcoal: #0B0F14;
  --cloud-white: #F5F7FA;
  
  /* Secondary Accents */
  --rally-lime: #B6F23A;
  --smash-orange: #FF7A18;
  --circuit-purple: #7C5CFF;
  
  /* Neutrals */
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-200: #E2E8F0;
  
  /* Semantic Colors */
  --bg-dark: var(--deep-charcoal);
  --surface-dark: #111827;
  --surface-dark-alt: #0F172A;
  --text-primary-dark: #F8FAFC;
  --text-muted-dark: #94A3B8;

  --bg-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --surface-light: rgba(255, 255, 255, 0.90);
  
  /* Spacing & Shapes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-loop: 9999px; /* Pill shape */
}

/* Typography Overrides */
html {
  scrollbar-gutter: stable; /* Reserves space for scrollbar to prevent layout shift */
}

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}

/* General Layout */
.container {
    max-width: 1200px; /* Slight adjustment for better spacing if needed */
}

/* --- Dark Mode Customizations --- */
[data-theme="dark"] body {
  background-color: var(--deep-charcoal);
  color: var(--text-primary-dark);
}

[data-theme="dark"] .card, 
[data-theme="dark"] .glass-card {
  background-color: var(--surface-dark);
  border: 1px solid var(--slate-700);
  color: var(--text-primary-dark);
}

[data-theme="dark"] .navbar {
    background-color: rgba(11, 15, 20, 0.95) !important; /* Deep charcoal with opacity */
    border-bottom: 1px solid var(--slate-700);
}

/* --- Light Mode Customizations --- */
/* The base Flatly or Minty theme handles a lot, but we overlay SportPulse styles */
body.light-theme {
    background: var(--bg-light);
}


/* --- Components --- */

/* Buttons */
.btn-primary, .btn-teal {
  background-color: var(--pulse-teal);
  border-color: var(--pulse-teal);
  color: #000; /* Contrast */
  font-weight: 600;
  border-radius: var(--radius-loop); /* Pill buttons */
  padding: 0.5rem 1.5rem;
}

.btn-primary:hover, .btn-teal:hover {
  background-color: var(--pulse-teal-hover);
  border-color: var(--pulse-teal-hover);
  color: #000;
}

.btn-secondary {
    border-radius: var(--radius-loop);
}

.btn-outline-primary {
    color: var(--pulse-teal);
    border-color: var(--pulse-teal);
    border-radius: var(--radius-loop);
}

.btn-outline-primary:hover {
    background-color: var(--pulse-teal);
    color: #000;
}


/* Cards */
.card {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Glass Card Override (matches guidelines) */
.glass-card {
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Chips / Badges */
.badge {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.badge-primary {
    background-color: rgba(0, 209, 193, 0.15); /* Teal accent */
    color: var(--pulse-teal);
    border: 1px solid rgba(0, 209, 193, 0.3);
}

/* Navbar */
.navbar-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Specific Utilities */
.text-teal { color: var(--pulse-teal) !important; }
.text-orange { color: var(--smash-orange) !important; }
.text-lime { color: var(--rally-lime) !important; }
.text-purple { color: var(--circuit-purple) !important; }

.bg-teal { background-color: var(--pulse-teal) !important; }
.bg-charcoal { background-color: var(--deep-charcoal) !important; }

/* Motion */
/* Simple fade in */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.opacity-10{
  opacity: 0.1;
}