/* Catppuccin Mocha Theme for Sports AI Agent */
/* Modern dark theme with Inter & JetBrains Mono fonts */

/* Import Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Catppuccin Mocha Color Palette */
  /* Base colors */
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;

  /* Surface colors */
  --ctp-surface0: #313244;
  --ctp-surface1: #45475a;
  --ctp-surface2: #585b70;

  /* Overlay colors */
  --ctp-overlay0: #6c7086;
  --ctp-overlay1: #7f849c;
  --ctp-overlay2: #9399b2;

  /* Text colors */
  --ctp-subtext0: #a6adc8;
  --ctp-subtext1: #bac2de;
  --ctp-text: #cdd6f4;

  /* Accent colors */
  --ctp-lavender: #b4befe;
  --ctp-blue: #89b4fa;
  --ctp-sapphire: #74c7ec;
  --ctp-sky: #89dceb;
  --ctp-teal: #94e2d5;
  --ctp-green: #a6e3a1;
  --ctp-yellow: #f9e2af;
  --ctp-peach: #fab387;
  --ctp-maroon: #eba0ac;
  --ctp-red: #f38ba8;
  --ctp-mauve: #cba6f7;
  --ctp-pink: #f5c2e7;
  --ctp-flamingo: #f2cdcd;
  --ctp-rosewater: #f5e0dc;

  /* Semantic color mappings */
  --color-background: var(--ctp-base);
  --color-surface: var(--ctp-surface0);
  --color-surface-elevated: var(--ctp-surface1);
  --color-border: var(--ctp-surface1);
  --color-border-subtle: var(--ctp-surface0);

  --color-text-primary: var(--ctp-text);
  --color-text-secondary: var(--ctp-subtext1);
  --color-text-tertiary: var(--ctp-subtext0);
  --color-text-muted: var(--ctp-overlay2);

  --color-accent-primary: var(--ctp-blue);
  --color-accent-secondary: var(--ctp-mauve);
  --color-success: var(--ctp-green);
  --color-warning: var(--ctp-yellow);
  --color-error: var(--ctp-red);
  --color-info: var(--ctp-sky);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(17, 17, 27, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(17, 17, 27, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(17, 17, 27, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(17, 17, 27, 0.6);
  --shadow-glow: 0 0 20px rgba(137, 180, 250, 0.3);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background-color: var(--ctp-base);
  color: var(--ctp-text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ctp-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Links */
a {
  color: var(--ctp-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--ctp-sapphire);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--ctp-blue);
  color: var(--ctp-base);
}

.btn-primary:hover {
  background-color: var(--ctp-sapphire);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--ctp-surface1);
  color: var(--ctp-text);
}

.btn-secondary:hover {
  background-color: var(--ctp-surface2);
}

.btn-success {
  background-color: var(--ctp-green);
  color: var(--ctp-base);
}

.btn-danger {
  background-color: var(--ctp-red);
  color: var(--ctp-base);
}

/* Cards */
.card {
  background-color: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  background-color: var(--ctp-surface1);
}

/* Glassmorphism */
.glass {
  background: rgba(49, 50, 68, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 214, 244, 0.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge-blue { background-color: rgba(137, 180, 250, 0.2); color: var(--ctp-blue); }
.badge-green { background-color: rgba(166, 227, 161, 0.2); color: var(--ctp-green); }
.badge-red { background-color: rgba(243, 139, 168, 0.2); color: var(--ctp-red); }
.badge-yellow { background-color: rgba(249, 226, 175, 0.2); color: var(--ctp-yellow); }
.badge-purple { background-color: rgba(203, 166, 247, 0.2); color: var(--ctp-mauve); }
.badge-sky { background-color: rgba(137, 220, 235, 0.2); color: var(--ctp-sky); }

/* Form Inputs */
input, textarea, select {
  background-color: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  color: var(--ctp-text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ctp-blue);
  box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--ctp-overlay2);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: var(--ctp-surface0);
  color: var(--ctp-subtext1);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ctp-surface1);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ctp-surface0);
}

tr:hover {
  background-color: rgba(49, 50, 68, 0.5);
}

/* Custom Scrollbar - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--ctp-mantle);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--ctp-surface1);
  border-radius: var(--radius-sm);
  border: 2px solid var(--ctp-mantle);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ctp-surface2);
}

::-webkit-scrollbar-thumb:active {
  background: var(--ctp-blue);
}

/* Custom Scrollbar - Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ctp-surface1) var(--ctp-mantle);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.text-primary { color: var(--ctp-text); }
.text-secondary { color: var(--ctp-subtext1); }
.text-tertiary { color: var(--ctp-subtext0); }
.text-muted { color: var(--ctp-overlay2); }

.bg-base { background-color: var(--ctp-base); }
.bg-surface { background-color: var(--ctp-surface0); }
.bg-surface-elevated { background-color: var(--ctp-surface1); }

.border-subtle { border-color: var(--ctp-surface0); }
.border-default { border-color: var(--ctp-surface1); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn var(--transition-base);
}

.animate-slide-up {
  animation: slideUp var(--transition-slow);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--ctp-blue) 0%, var(--ctp-mauve) 50%, var(--ctp-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stat Numbers */
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Confidence Indicators */
.confidence-high { color: var(--ctp-green); }
.confidence-medium { color: var(--ctp-yellow); }
.confidence-low { color: var(--ctp-overlay2); }

/* Loading States */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sport-specific accent colors */
.sport-nfl { color: var(--ctp-red); }
.sport-nba { color: var(--ctp-blue); }
.sport-nhl { color: var(--ctp-sky); }
.sport-mlb { color: var(--ctp-green); }
.sport-college-football { color: var(--ctp-peach); }
.sport-golf { color: var(--ctp-green); }

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ddd;
  }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS
   ============================================ */

/* Small screens (phones, <640px) */
@media (max-width: 639px) {
  /* Mobile Typography - Reduce sizes by ~20% */
  h1 {
    font-size: 2rem; /* was 2.5rem */
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6rem; /* was 2rem */
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem; /* was 1.5rem */
    line-height: 1.4;
  }

  h4 {
    font-size: 1.125rem; /* was 1.25rem */
  }

  /* Ensure readable minimum text sizes */
  body, p, span, div {
    font-size: max(14px, 0.875rem);
  }

  .text-xs {
    font-size: max(12px, 0.75rem);
  }

  .text-sm {
    font-size: max(14px, 0.875rem);
  }

  /* Mobile Card Optimizations */
  .card {
    padding: 0.75rem; /* Reduced from 1.5rem */
    border-radius: var(--radius-md);
  }

  /* Game Cards - More compact on mobile */
  [data-controller="game-card"] {
    padding: 0.75rem !important; /* Override inline styles */
  }

  /* Touch-Optimized Spacing */
  .space-y-8 > * + * {
    margin-top: 1.5rem; /* Reduced from 2rem */
  }

  .space-y-4 > * + * {
    margin-top: 0.75rem; /* Reduced from 1rem */
  }

  .space-y-3 > * + * {
    margin-top: 0.5rem; /* Reduced from 0.75rem */
  }

  .space-y-2 > * + * {
    margin-top: 0.375rem; /* Reduced from 0.5rem */
  }

  /* Mobile Grid Spacing */
  .grid {
    gap: 0.75rem; /* Reduced from 1rem */
  }

  /* Touch Targets - Minimum 44x44px */
  button, a.btn, .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.625rem 1rem;
  }

  .badge {
    padding: 0.375rem 0.75rem;
    font-size: max(12px, 0.75rem);
    font-weight: 600;
  }

  /* Enhanced Information Hierarchy for Mobile */

  /* Team names - larger and more prominent */
  [data-controller="game-card"] .font-semibold {
    font-size: 1rem;
    font-weight: 600;
  }

  /* Betting lines - clearer visual hierarchy */
  [data-controller="game-card"] .text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Confidence indicators - more prominent */
  .text-lg {
    font-size: 1.125rem;
    font-weight: 600;
  }

  /* Data quality indicator - larger on mobile */
  .h-1 {
    height: 0.25rem;
  }

  .w-16 {
    width: 5rem; /* Increased from 4rem for better visibility */
  }

  /* Touch-Optimized Active States (replaces hover) */
  button:active, .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .card:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
  }

  /* Mobile Navigation Safe Area Support */
  nav {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Mobile Menu Optimizations */
  [data-mobile-nav-target="menu"] {
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile menu items - larger touch targets */
  [data-mobile-nav-target="menu"] a,
  [data-mobile-nav-target="menu"] button {
    min-height: 48px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Better text wrapping for badges on mobile */
  .flex-wrap {
    gap: 0.5rem;
  }

  /* Glassmorphism Performance - Reduce blur on mobile */
  .glass {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
  }

  /* Container padding adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Featured picks - stack vertically on mobile */
  .grid-cols-1 {
    gap: 0.75rem;
  }
}

/* Medium screens (tablets, 640px-1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Tablet Typography - Slight reduction */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  /* Tablet Grid Spacing */
  .grid {
    gap: 1rem;
  }

  /* Tablet Card Padding */
  .card {
    padding: 1.25rem;
  }

  [data-controller="game-card"] {
    padding: 1rem !important;
  }

  /* Touch targets still important on tablets */
  button, a.btn, .btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--ctp-surface0);
    opacity: 0.95;
  }
}

/* Will-change for animated elements */
.card,
button,
.btn,
[data-controller="game-card"] {
  will-change: transform;
}

/* Optimize rendering for mobile devices */
@media (max-width: 639px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Improve scroll performance */
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce layout reflows */
  img, video {
    max-width: 100%;
    height: auto;
  }
}

/* High DPI screens - Sharper rendering */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass {
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
  }
}

/* Landscape orientation - Adjust spacing */
@media (max-width: 639px) and (orientation: landscape) {
  .space-y-8 > * + * {
    margin-top: 1rem;
  }

  nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Dark mode optimizations (already dark, but ensure consistency) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }

  /* Ensure proper contrast on mobile */
  .text-xs, .text-sm {
    color: var(--ctp-text);
    opacity: 0.95;
  }
}

/* ============================================ */
/* Rating Badge System (Video Game Style) */
/* ============================================ */

/* Compact Rating Badge (Original - for inline use) */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.rating-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.rating-badge:hover::before {
  left: 100%;
}

/* V2: Enhanced Rating Badge with Icon (Video Game Style) */
.rating-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  border: 2px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.rating-badge-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-badge-v2:hover::before {
  left: 100%;
}

.rating-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.rating-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rating-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 60px;
}

.rating-tier-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.rating-tier-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  line-height: 1;
}

/* S-Tier: Elite (Green/Teal gradient) */
.rating-badge.rating-s,
.rating-badge-v2.rating-s {
  background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-teal) 100%);
  border-color: var(--ctp-green);
  color: var(--ctp-base);
  box-shadow: 0 2px 12px rgba(166, 227, 161, 0.5), 0 0 20px rgba(166, 227, 161, 0.2);
}

.rating-badge-v2.rating-s {
  animation: pulse-glow-s 3s ease-in-out infinite;
}

@keyframes pulse-glow-s {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(166, 227, 161, 0.5), 0 0 20px rgba(166, 227, 161, 0.2);
  }
  50% {
    box-shadow: 0 6px 16px rgba(166, 227, 161, 0.7), 0 0 30px rgba(166, 227, 161, 0.35);
  }
}

/* A-Tier: Strong (Blue gradient) */
.rating-badge.rating-a,
.rating-badge-v2.rating-a {
  background: linear-gradient(135deg, var(--ctp-blue) 0%, var(--ctp-sapphire) 100%);
  border-color: var(--ctp-blue);
  color: var(--ctp-base);
  box-shadow: 0 2px 10px rgba(137, 180, 250, 0.4), 0 0 16px rgba(137, 180, 250, 0.15);
}

/* B-Tier: Average (Yellow/Peach gradient) */
.rating-badge.rating-b,
.rating-badge-v2.rating-b {
  background: linear-gradient(135deg, var(--ctp-yellow) 0%, var(--ctp-peach) 100%);
  border-color: var(--ctp-yellow);
  color: var(--ctp-base);
  box-shadow: 0 2px 8px rgba(249, 226, 175, 0.3), 0 0 12px rgba(249, 226, 175, 0.1);
}

/* C-Tier: Weak (Red/Maroon gradient) */
.rating-badge.rating-c,
.rating-badge-v2.rating-c {
  background: linear-gradient(135deg, var(--ctp-red) 0%, var(--ctp-maroon) 100%);
  border-color: var(--ctp-red);
  color: var(--ctp-base);
  box-shadow: 0 2px 8px rgba(243, 139, 168, 0.3), 0 0 12px rgba(243, 139, 168, 0.1);
}

.rating-tier {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Hover effects - Compact */
.rating-badge:hover {
  transform: translateY(-2px) scale(1.05);
}

.rating-badge.rating-s:hover {
  box-shadow: 0 4px 16px rgba(166, 227, 161, 0.6), 0 0 30px rgba(166, 227, 161, 0.3);
}

.rating-badge.rating-a:hover {
  box-shadow: 0 4px 14px rgba(137, 180, 250, 0.5), 0 0 24px rgba(137, 180, 250, 0.2);
}

.rating-badge.rating-b:hover {
  box-shadow: 0 4px 12px rgba(249, 226, 175, 0.4), 0 0 20px rgba(249, 226, 175, 0.15);
}

.rating-badge.rating-c:hover {
  box-shadow: 0 4px 12px rgba(243, 139, 168, 0.4), 0 0 20px rgba(243, 139, 168, 0.15);
}

/* Hover effects - V2 */
.rating-badge-v2:hover {
  transform: translateY(-3px) scale(1.03);
}

.rating-badge-v2.rating-s:hover {
  box-shadow: 0 6px 20px rgba(166, 227, 161, 0.6), 0 0 35px rgba(166, 227, 161, 0.35);
}

.rating-badge-v2.rating-a:hover {
  box-shadow: 0 6px 18px rgba(137, 180, 250, 0.5), 0 0 28px rgba(137, 180, 250, 0.25);
}

.rating-badge-v2.rating-b:hover {
  box-shadow: 0 6px 16px rgba(249, 226, 175, 0.4), 0 0 24px rgba(249, 226, 175, 0.2);
}

.rating-badge-v2.rating-c:hover {
  box-shadow: 0 6px 16px rgba(243, 139, 168, 0.4), 0 0 24px rgba(243, 139, 168, 0.2);
}

/* Offensive vs Defensive Icon Colors */
.rating-offense .rating-icon {
  color: rgba(255, 255, 255, 0.95);
}

.rating-defense .rating-icon {
  color: rgba(255, 255, 255, 0.95);
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .rating-badge {
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .rating-badge-v2 {
    gap: 6px;
    padding: 6px 10px;
  }

  .rating-badge-icon {
    width: 24px;
    height: 24px;
  }

  .rating-icon {
    width: 16px;
    height: 16px;
  }

  .rating-tier-label {
    font-size: 0.875rem;
  }

  .rating-tier-name {
    font-size: 0.5625rem;
  }

  .rating-badge-content {
    min-width: 50px;
  }
}

/* ============================================ */
/* Public Betting Trends Component */
/* ============================================ */

.public-betting-trends {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(137, 180, 250, 0.05) 0%, rgba(116, 199, 236, 0.05) 100%);
  border: 1px solid rgba(137, 180, 250, 0.15);
  transition: all var(--transition-base);
}

.public-betting-trends:hover {
  border-color: rgba(137, 180, 250, 0.3);
  box-shadow: 0 4px 16px rgba(137, 180, 250, 0.08);
}

/* Compact variant for game cards */
.public-betting-trends.compact {
  padding: 12px;
}

.public-betting-trends.compact .market-header {
  margin-bottom: 8px;
}

/* Betting Markets Grid */
.betting-markets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .betting-markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Betting Market */
.betting-market {
  background-color: var(--ctp-surface0);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--ctp-surface1);
  transition: all var(--transition-base);
}

.betting-market:hover {
  border-color: var(--ctp-surface2);
  background-color: rgba(69, 71, 90, 0.5);
}

/* Market Header */
.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ctp-surface1);
}

.market-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ctp-sky);
}

.market-line {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ctp-text);
}

/* Team Bet Row */
.team-bet-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.team-bet-row:not(:last-of-type) {
  margin-bottom: 8px;
}

.team-bet-row:hover {
  background-color: rgba(137, 180, 250, 0.03);
}

/* Sharp Signal Highlighting */
.team-bet-row.sharp-signal {
  background: linear-gradient(90deg, rgba(249, 226, 175, 0.08) 0%, rgba(249, 226, 175, 0.02) 100%);
  border-left: 2px solid var(--ctp-yellow);
  padding-left: 10px;
}

.team-bet-row.sharp-signal:hover {
  background: linear-gradient(90deg, rgba(249, 226, 175, 0.12) 0%, rgba(249, 226, 175, 0.04) 100%);
}

/* Team Info */
.team-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.team-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ctp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sharp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(249, 226, 175, 0.2) 0%, rgba(249, 226, 175, 0.1) 100%);
  color: var(--ctp-yellow);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 226, 175, 0.4);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(249, 226, 175, 0.2);
  }
}

/* Bet Bars */
.bet-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bet-bar-container {
  position: relative;
  height: 20px;
  background-color: var(--ctp-surface1);
  border-radius: 4px;
  overflow: hidden;
}

.bet-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bet % (Blue gradient) */
.bet-bar-fill.bet-pct {
  background: linear-gradient(90deg, rgba(137, 180, 250, 0.6) 0%, rgba(137, 180, 250, 0.4) 100%);
}

/* Money % (Mauve gradient) */
.bet-bar-fill.money-pct {
  background: linear-gradient(90deg, rgba(203, 166, 247, 0.6) 0%, rgba(203, 166, 247, 0.4) 100%);
}

.bet-bar-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ctp-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Market Legend */
.market-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ctp-surface1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ctp-subtext1);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-dot.bet-pct {
  background: linear-gradient(135deg, rgba(137, 180, 250, 0.6) 0%, rgba(137, 180, 250, 0.4) 100%);
}

.legend-dot.money-pct {
  background: linear-gradient(135deg, rgba(203, 166, 247, 0.6) 0%, rgba(203, 166, 247, 0.4) 100%);
}

/* Info Footer */
.betting-info-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  background-color: rgba(137, 180, 250, 0.05);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--ctp-sky);
}

.betting-info-footer svg {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .team-bet-row {
    grid-template-columns: 70px 1fr;
    gap: 8px;
  }

  .team-name {
    font-size: 0.6875rem;
  }

  .bet-bar-label {
    font-size: 0.625rem;
    right: 4px;
  }
}
