/* ========================================
   PROFESSIONAL SPORTS BETTING PROMPT LIBRARY
   Modern CSS Design System - 2025
   ======================================== */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Color System */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  --secondary-700: #6d28d9;
  
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --danger-500: #ef4444;
  
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* Dark Theme Colors */
  --dark-bg-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --dark-bg-secondary: rgba(30, 41, 59, 0.95);
  --dark-bg-card: linear-gradient(145deg, #1e293b, #334155);
  --dark-border: rgba(148, 163, 184, 0.2);
  --dark-text-primary: #f8fafc;
  --dark-text-secondary: #cbd5e1;
  --dark-text-muted: #94a3b8;
  
  /* Light Theme Colors - PhD-Level Sophisticated Design */
  --light-bg-primary: linear-gradient(135deg, #fdfcff 0%, #f7f8fc 25%, #f1f5f9 50%, #e2e8f0 100%);
  --light-bg-secondary: rgba(255, 255, 255, 0.92);
  --light-bg-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --light-border: rgba(59, 130, 246, 0.15);
  --light-text-primary: #2d3748;
  --light-text-secondary: #4a5568;
  --light-text-muted: #718096;
  --light-accent: #3182ce;
  --light-accent-secondary: #805ad5;
  --light-shadow: rgba(99, 102, 241, 0.08);
  --light-glow: rgba(59, 130, 246, 0.1);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-modal: 1000;
  --z-dropdown: 100;
  --z-header: 50;
  --z-overlay: 40;
  --z-base: 1;
  --z-behind: -1;
}

/* === BASE STYLES === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-xl);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark-text-primary);
  background: var(--dark-bg-primary);
  background-attachment: fixed;
  min-height: 100vh;
  transition: all var(--transition-base);
  position: relative;
  overflow-x: hidden;
}

/* === SOPHISTICATED LIGHT THEME === */
body.light-theme {
  color: var(--light-text-primary);
  background: var(--light-bg-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PhD-Level Typography Hierarchy */
body.light-theme h1,
body.light-theme h2, 
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
  color: var(--light-text-primary);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  letter-spacing: -0.025em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--dark-text-secondary);
}

body.light-theme p {
  color: var(--light-text-secondary);
  font-weight: 500;
  line-height: 1.7;
}

/* Sophisticated Header Design */
body.light-theme .header-subtitle {
  color: var(--light-text-muted);
  font-weight: 500;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.01em;
}

/* Elegant Search Interface */
body.light-theme .search-input {
  color: var(--light-text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

body.light-theme .search-input::placeholder {
  color: var(--light-text-muted);
  font-weight: 400;
  opacity: 0.7;
  font-style: italic;
}

body.light-theme .search-box {
  background: var(--light-bg-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 4px 25px var(--light-shadow), 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

body.light-theme .search-box:focus-within {
  border-color: var(--light-accent);
  box-shadow: 0 8px 35px var(--light-glow), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Sophisticated Category Filters */
body.light-theme .category-filter {
  background: var(--light-bg-card);
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px var(--light-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
}

body.light-theme .category-filter:hover {
  background: linear-gradient(135deg, var(--light-accent), var(--light-accent-secondary));
  color: white;
  border-color: var(--light-accent);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(128, 90, 213, 0.15);
  transform: translateY(-1px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.light-theme .category-filter.active {
  background: linear-gradient(135deg, var(--light-accent), var(--light-accent-secondary));
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Premium Sport Cards Design */
body.light-theme .sport-card {
  background: var(--light-bg-card);
  border: 1px solid var(--light-border);
  box-shadow: 0 4px 20px var(--light-shadow), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .sport-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--light-glow), 0 8px 25px var(--light-shadow);
  border-color: var(--light-accent);
}

body.light-theme .sport-name {
  color: var(--light-text-primary);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

body.light-theme .sport-category {
  color: var(--light-text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Elegant Prompt Container */
body.light-theme .prompt-container {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--light-accent);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15), 0 8px 30px var(--light-shadow);
  backdrop-filter: blur(20px);
}

body.light-theme .prompt-container.prompt-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

body.light-theme .prompt-title {
  background: linear-gradient(135deg, var(--light-accent), var(--light-accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-shadow: none;
}

body.light-theme .prompt-category {
  color: var(--light-text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Premium Tools Section */
body.light-theme .tools-section {
  background: var(--light-bg-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 8px 32px var(--light-shadow);
  backdrop-filter: blur(20px);
}

body.light-theme .tool-title {
  color: var(--light-text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

body.light-theme .tool-description {
  color: var(--light-text-muted);
  font-weight: 400;
  line-height: 1.6;
}

body.light-theme .tool-button {
  box-shadow: 0 4px 15px var(--light-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .tool-button:hover {
  box-shadow: 0 8px 25px var(--light-glow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Sophisticated Guide Design */
body.light-theme .quick-guide {
  background: var(--light-bg-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 8px 32px var(--light-shadow);
  backdrop-filter: blur(20px);
}

body.light-theme .quick-guide h2 {
  color: var(--light-text-primary);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .guide-step {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  border: 1px solid var(--light-border);
  box-shadow: 0 4px 15px var(--light-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .guide-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px var(--light-glow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme .step-title {
  color: var(--light-text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

body.light-theme .step-description {
  color: var(--light-text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* Premium AI Integration Section */
body.light-theme .ai-section {
  background: var(--light-bg-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 8px 32px var(--light-shadow);
  backdrop-filter: blur(20px);
}

body.light-theme .ai-section h2,
body.light-theme .ai-section h3 {
  color: var(--light-text-primary);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .ai-section label {
  color: var(--light-text-primary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.light-theme .ai-section p {
  color: var(--light-text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

/* Sophisticated Button Styling */
body.light-theme button {
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--light-shadow);
}

body.light-theme button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--light-glow);
}

/* Elegant Disclaimer Section */
body.light-theme .disclaimer-section {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.3), rgba(254, 215, 170, 0.2));
  border: 1px solid rgba(234, 88, 12, 0.2);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.1);
}

body.light-theme .disclaimer-section h2 {
  color: #ea580c;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
}

body.light-theme .disclaimer-section p {
  color: var(--light-text-secondary);
  font-weight: 500;
}

/* Refined Theme Toggle */
body.light-theme .theme-toggle {
  background: var(--light-bg-card);
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
  box-shadow: 0 4px 15px var(--light-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px var(--light-glow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* === LAYOUT COMPONENTS === */

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Header */
.header {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-xl);
  z-index: var(--z-base);
}

.header-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500), var(--primary-600));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

.header-subtitle {
  font-size: var(--font-size-xl);
  color: var(--dark-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

body.light-theme .header-subtitle {
  color: var(--light-text-muted);
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--dark-bg-card);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-full);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--dark-text-primary);
  font-size: var(--font-size-lg);
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-glow);
}

body.light-theme .theme-toggle {
  background: var(--light-bg-card);
  border-color: var(--light-border);
  color: var(--light-text-primary);
}

/* Search Section */
.search-section {
  margin-bottom: var(--space-3xl);
}

.search-box {
  background: var(--dark-bg-secondary);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(15px);
  transition: all var(--transition-base);
}

.search-box:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-lg);
  transform: translateY(-2px);
}

body.light-theme .search-box {
  background: var(--light-bg-secondary);
  border-color: var(--light-border);
}

body.light-theme .search-box:focus-within {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-lg);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: var(--font-size-lg);
  color: var(--dark-text-primary);
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--dark-text-muted);
}

body.light-theme .search-input {
  color: var(--light-text-primary);
}

body.light-theme .search-input::placeholder {
  color: var(--light-text-muted);
}

/* Category Filters */
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.category-filter {
  background: var(--dark-bg-card);
  border: 2px solid var(--dark-border);
  color: var(--dark-text-secondary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: capitalize;
  white-space: nowrap;
}

.category-filter:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-500);
}

.category-filter.active,
.category-badge {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-color: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-add-new {
  background: linear-gradient(135deg, var(--success-500), #059669);
  border: 2px solid transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add-new:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(-3px) scale(1.05);
}

body.light-theme .category-filter {
  background: var(--light-bg-card);
  border-color: var(--light-border);
  color: var(--light-text-secondary);
}

/* Sports Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* === TOP 7 SPORTS DIVIDER === */
.top-sports-divider {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 1rem;
  margin: 0.5rem 0;
}

.divider-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-500);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  position: relative;
  padding: 0.4rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.divider-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-500) 15%, 
    var(--secondary-500) 50%, 
    var(--primary-500) 85%, 
    transparent 100%
  );
  border-radius: var(--radius-full);
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(139, 92, 246, 0.2);
  position: relative;
}

.divider-line::before,
.divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.divider-line::before { left: 0; }
.divider-line::after { right: 0; }

.divider-sublabel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Light theme divider */
body.light-theme .divider-label {
  color: var(--light-accent);
  text-shadow: none;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.08), rgba(128, 90, 213, 0.08));
  border-color: rgba(49, 130, 206, 0.15);
}

body.light-theme .divider-line {
  box-shadow: 
    0 0 10px rgba(49, 130, 206, 0.2),
    0 0 20px rgba(128, 90, 213, 0.1);
}

body.light-theme .divider-sublabel {
  color: var(--light-text-muted);
}

/* === SCREENSHOT & PhD OPTION STYLES === */
.option-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: 0.75rem 0;
}

.screenshot-option,
.phd-option {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.screenshot-option:hover {
  background: rgba(16, 185, 129, 0.05);
}

.phd-option:hover {
  background: rgba(139, 92, 246, 0.05);
}

body.light-theme .screenshot-option:hover {
  background: rgba(16, 185, 129, 0.08);
}

body.light-theme .phd-option:hover {
  background: rgba(139, 92, 246, 0.08);
}


/* Sport Cards */
.sport-card {
  background: var(--dark-bg-card);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 162px;
  animation: slideUp 0.6s ease-out forwards;
}

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

.sport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left var(--transition-slow);
}

.sport-card:hover::before {
  left: 100%;
}

.sport-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--primary-500);
  box-shadow: 
    0 25px 50px rgba(59, 130, 246, 0.3),
    0 15px 35px rgba(139, 92, 246, 0.2),
    var(--shadow-glow);
}

.sport-card.selected {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--primary-600);
  background: linear-gradient(145deg, var(--primary-700), var(--primary-600));
  box-shadow: 
    0 30px 60px rgba(59, 130, 246, 0.5),
    0 20px 40px rgba(139, 92, 246, 0.3);
}

body.light-theme .sport-card {
  background: var(--light-bg-card);
  border-color: var(--light-border);
  box-shadow: var(--shadow-md);
}

body.light-theme .sport-card:hover {
  box-shadow: 
    0 25px 50px rgba(59, 130, 246, 0.2),
    0 15px 35px rgba(139, 92, 246, 0.1);
}

.sport-icon {
  font-size: 3.15rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all var(--transition-base);
}

.sport-card:hover .sport-icon {
  transform: scale(1.1) rotate(5deg);
}

.sport-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-xs);
}

.sport-category {
  font-size: var(--font-size-sm);
  color: var(--dark-text-muted);
  text-transform: capitalize;
  opacity: 0.8;
}

body.light-theme .sport-name {
  color: var(--light-text-primary);
}

body.light-theme .sport-category {
  color: var(--light-text-muted);
}

/* Favorite Star */
.favorite-star {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--font-size-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0.6;
  z-index: var(--z-base);
}

.favorite-star:hover {
  transform: scale(1.3) rotate(18deg);
  opacity: 1;
}

.favorite-star.is-favorite {
  opacity: 1;
  color: var(--warning-500);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

/* Prompt Container */
.prompt-container {
  background: var(--dark-bg-secondary);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.prompt-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500), var(--primary-600));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.prompt-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

body.light-theme .prompt-container {
  background: var(--light-bg-secondary);
  border-color: var(--light-border);
}

/* Prompt Header */
.prompt-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 1024px) {
  .prompt-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.prompt-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: var(--space-sm);
}

.prompt-category {
  font-size: var(--font-size-sm);
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

body.light-theme .prompt-category {
  color: var(--light-text-muted);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.action-button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.action-button:hover {
  transform: translateY(-2px) scale(1.05);
}

.edit-button {
  background: var(--neutral-600);
  color: white;
}

.edit-button:hover {
  background: var(--neutral-500);
  box-shadow: 0 8px 24px rgba(71, 85, 105, 0.3);
}

.copy-button {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.copy-button:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Prompt Text Area */
.prompt-textarea {
  width: 100%;
  min-height: 400px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: var(--dark-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.prompt-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.light-theme .prompt-textarea {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.8;
  box-shadow: inset 0 2px 8px rgba(59, 130, 246, 0.05), 0 1px 3px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

body.light-theme .prompt-textarea:focus {
  border-color: var(--light-accent);
  box-shadow: inset 0 2px 8px rgba(59, 130, 246, 0.08), 0 0 0 3px var(--light-glow);
}

/* Copy Feedback */
.copy-feedback {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-500);
  font-weight: 600;
  opacity: 0;
  transition: all var(--transition-base);
  transform: translateY(10px);
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tools Section */
.tools-section {
  background: var(--dark-bg-secondary);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  backdrop-filter: blur(25px);
  animation: slideUpFade 0.8s ease-out;
}

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

body.light-theme .tools-section {
  background: var(--light-bg-secondary);
  border-color: var(--light-border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.tool-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-button {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tool-button:hover {
  transform: scale(1.15) rotate(-5deg);
}

.tool-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.tool-button:hover::before {
  transform: translateX(100%);
}

.export-button {
  background: linear-gradient(135deg, var(--success-500), #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.import-button {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.reset-button {
  background: linear-gradient(135deg, var(--danger-500), #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tool-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-sm);
}

.tool-description {
  font-size: var(--font-size-sm);
  color: var(--dark-text-muted);
  line-height: 1.5;
}

body.light-theme .tool-title {
  color: var(--light-text-primary);
}

body.light-theme .tool-description {
  color: var(--light-text-muted);
}

/* Quick Guide */
.quick-guide {
  background: var(--dark-bg-secondary);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(25px);
}

body.light-theme .quick-guide {
  background: var(--light-bg-secondary);
  border-color: var(--light-border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.guide-step {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.guide-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15);
}

body.light-theme .guide-step {
  background: rgba(248, 250, 252, 0.9);
  border-color: var(--light-border);
}

.step-number {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-description {
  font-size: var(--font-size-sm);
  color: var(--dark-text-muted);
  line-height: 1.5;
}

body.light-theme .step-description {
  color: var(--light-text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-md);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn var(--transition-base) ease-out;
}

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

.modal-content {
  background: var(--dark-bg-card);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  min-width: 400px;
  box-shadow: var(--shadow-2xl);
  animation: scaleIn var(--transition-base) ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

body.light-theme .modal-content {
  background: var(--light-bg-card);
  border-color: var(--light-border);
}

.modal-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  color: var(--dark-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  outline: none;
  transition: all var(--transition-base);
}

.modal-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Sophisticated Modal Design */
body.light-theme .modal-content {
  background: var(--light-bg-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 10px 30px var(--light-shadow);
  backdrop-filter: blur(20px);
}

body.light-theme .modal-input {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.05), 0 1px 3px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .modal-input:focus {
  border-color: var(--light-accent);
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.08), 0 0 0 3px var(--light-glow);
}

/* Floating Elements */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(10px) rotate(180deg); }
  75% { transform: translateY(-15px) rotate(270deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }
  
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .sport-card {
    padding: var(--space-lg);
    min-height: 140px;
  }
  
  .sport-icon {
    font-size: 2.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-button {
    width: 100%;
    justify-content: center;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    min-width: auto;
    margin: var(--space-md);
  }
}

@media (max-width: 480px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-section {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .category-filter {
    width: 100%;
    text-align: center;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .sport-card {
    border-width: 3px;
  }
  
  .action-button {
    border-width: 2px;
    border-color: currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .header-title {
    animation: none;
    background: var(--primary-500);
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--primary-500);
  }
}

/* Focus Visible */
.sport-card:focus-visible,
.action-button:focus-visible,
.category-filter:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 1.5s infinite;
}

/* Premium Light Mode Enhancements */
body.light-theme {
  --light-glass: rgba(255, 255, 255, 0.25);
  --light-blur: blur(20px);
}

/* AI Generated Tips Styling */
.match-info-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tip-card {
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.tip-card:hover::before {
  left: 100%;
}

.tip-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tip-reasoning {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
}

.copy-tip-btn {
  background: linear-gradient(135deg, #374151, #475569);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-tip-btn:hover {
  background: linear-gradient(135deg, #475569, #64748b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Light Theme Tip Styling */
body.light-theme .match-info-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--light-text-primary);
}

body.light-theme .match-info-banner h3 {
  color: var(--light-accent);
}

body.light-theme .match-info-banner p {
  color: var(--light-text-secondary);
}

body.light-theme .tip-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--light-accent) !important;
  box-shadow: 0 4px 20px var(--light-shadow);
}

body.light-theme .tip-card h4 {
  color: var(--light-accent) !important;
}

body.light-theme .tip-card .text-slate-200 {
  color: var(--light-text-primary) !important;
  font-weight: 600;
}

body.light-theme .tip-card .text-slate-400 {
  color: var(--light-text-muted) !important;
}

body.light-theme .tip-card .text-green-400 {
  color: #059669 !important;
}

body.light-theme .tip-card .text-blue-400 {
  color: var(--light-accent) !important;
}

body.light-theme .tip-card .text-purple-400 {
  color: var(--light-accent-secondary) !important;
}

body.light-theme .tip-reasoning {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--light-border);
  color: var(--light-text-secondary);
}

body.light-theme .copy-tip-btn {
  background: linear-gradient(135deg, var(--light-accent), var(--light-accent-secondary));
  border: none;
  color: white;
  font-weight: 600;
}

body.light-theme .copy-tip-btn:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Confidence Badge Styling */
body.light-theme .tip-card .px-3.py-1 {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--light-accent) !important;
  color: var(--light-accent) !important;
  font-weight: 700;
}

/* Animation for tip generation */
.tip-card {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tip-card:nth-child(2) {
  animation-delay: 0.2s;
}

.tip-card:nth-child(3) {
  animation-delay: 0.4s;
}

.tip-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Sophisticated Glassmorphism Effects */
body.light-theme .search-section,
body.light-theme .tools-section,
body.light-theme .ai-section,
body.light-theme .quick-guide,
body.light-theme .disclaimer-section {
  backdrop-filter: var(--light-blur);
  -webkit-backdrop-filter: var(--light-blur);
}

/* Premium Animation Enhancements */
body.light-theme .sport-card,
body.light-theme .category-filter,
body.light-theme .guide-step {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Refined Typography Scale */
body.light-theme .header-title {
  background: linear-gradient(135deg, var(--light-accent) 0%, var(--light-accent-secondary) 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Print Styles */
@media print {
  .theme-toggle,
  .action-buttons,
  .tools-section,
  .floating-circle {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .sport-card,
  .prompt-container {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: white !important;
  }
}