/*
Main Stylesheet (hpstyles.css)
----------------------------
Global styles for Bet Wizard platform - A comprehensive sports betting analytics platform.

Structure:
1. Global Variables
   - Color schemes (dark/light modes)
   - Typography settings
   - Spacing and layout
   - Media query breakpoints
   - Theme-specific values

2. Base Styles
   - CSS reset and normalization
   - Typography hierarchy
   - Layout containers
   - Global spacing rules
   - Common element styles

3. Components
   - Navigation and header
   - Buttons and interactive elements
   - Cards and content blocks
   - Forms and inputs
   - Tables and data displays
   - Modals and overlays
   - Alerts and notifications

4. Utilities
   - Spacing helpers
   - Color utilities
   - Flexbox helpers
   - Grid system
   - Animation classes
   - Visibility utilities

5. Theme System
   - Dark mode implementation
   - Light mode implementation
   - Color scheme management
   - Theme transitions
   - Component theming

6. Responsive Design
   - Mobile-first approach
   - Tablet breakpoints
   - Desktop layouts
   - Large screen optimizations
   - Responsive typography
   - Touch-friendly interfaces
   - Adaptive spacing
   - Flexible grids

Features:
- Comprehensive theme system
- Responsive design framework
- Component-based architecture
- Custom animation library
- Accessibility support
- Performance optimizations
- Mobile-first approach
- Touch-friendly interfaces

Dependencies:
- Google Fonts (Inter, Orbitron)
- Font Awesome icons
- Custom icon set
- CSS custom properties

Usage:
- Global application styles
- Component-specific styles
- Page layout definitions
- Theme management
- Responsive design rules

Created: March 2024
Last Updated: April 2024
*/

/* === 🌈 GLOBAL VARIABLES === */
/* 
   Root-level CSS variables for consistent theming and styling.
   These variables define the core design system of the application.
*/
:root {
  --color-bg: #0A0A0A;
  --color-section: #111;
  --color-primary: #00B4D8;
  --color-secondary: #80FF72;
  --color-bronze: #cd7f32;
  --color-silver: #c0c0c0;
  --color-gold: #ffd700;
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --mobile-padding: 1rem;
  --tablet-padding: 2rem;
  --desktop-padding: 3rem;
  --mobile-margin: 1rem;
  --tablet-margin: 1.5rem;
  --desktop-margin: 2rem;
  /* Adding additional responsive variables for consistency */
  --navbar-height: 70px;
  --navbar-height-mobile: 60px;
  --container-width: 1200px;
  --container-padding: 2rem;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 🔧 RESET Y ESTILOS BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* === 🌌 FONDO ANIMADO (RADIAL FLOTANTE) === */
.background-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(0,180,216,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: floatBackground 30s infinite linear;
}

@keyframes floatBackground {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* === 🧭 RESPONSIVE NAVIGATION BAR STYLES === */
/* 
   Complete responsive navbar implementation that adapts to all screen sizes.
   Includes hamburger menu for mobile/tablet and clean dropdown functionality.
*/

/* Hide checkbox by default */
.menu-checkbox {
  display: none;
}

/* Hamburger menu styling */
.hamburger-label {
  display: none; /* Hidden on desktop by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  margin-right: 1rem;
  position: relative;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 10px;
  background-color: var(--color-muted);
  transition: all 0.3s ease-in-out;
}

/* Navbar base styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.logo a:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Mobile & Tablet Navigation Styles */
@media screen and (max-width: 768px) {
  /* Show hamburger on mobile/tablet */
  .hamburger-label {
    display: flex;
  }
  
  /* Style navigation links for dropdown */
  .nav-links {
    position: fixed;
    top: 60px; /* Height of navbar */
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Initial state - hidden */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  
  /* Checkbox-controlled dropdown */
  #menu-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Hamburger animation */
  #menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  #menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  #menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Adjust navbar padding on mobile */
  .navbar {
    padding: 1rem;
  }
  
  /* Keep login and theme buttons visible */
  .nav-buttons {
    gap: 0.5rem;
  }
  
  .btn-ghost {
    padding: 0.6rem 1rem;
  }
  
  .btn-ghost.theme-toggle {
    padding: 0.6rem;
  }
}

/* Special dashboard navbar styles */
.dashboard-navbar .nav-links li:not(.dashboard-link):not(.home-link) {
  display: none;
}

/* Keep dashboard nav cleaner */
@media screen and (min-width: 769px) {
  .dashboard-navbar .nav-links {
    justify-content: flex-start;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Prevent scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Add class for mobile nav */
@media screen and (max-width: 768px) {
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* === 🎥 HERO PRINCIPAL === */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(10,10,10,0.7);
  z-index: 1;
}

.hero-video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* === CONTENIDO HERO === */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 3.8rem;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* === HERO BADGES === */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  background-color: #1a1a1a;
  color: var(--color-muted);
  border: 1px solid #222;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* === SCROLL DOWN ARROW === */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--color-muted);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === 🚀 BOTONES === */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1.1rem 2rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.btn-secondary {
  background: var(--color-primary);
  color: #000;
}

/* === SECCIONES === */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  text-shadow: 0 2px 5px rgba(0, 180, 216, 0.2);
}

.dark-section {
  background-color: var(--color-section);
}

/* === PASOS (ANALYZE, PREDICT, RECOMMEND) === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    justify-content: space-between;
  }
}

.step h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* === TARJETAS DE FEATURES === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.feature-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, border 0.3s;
  border: 1px solid #222;
  font-weight: 600;
  color: var(--color-text);
  width: 260px;
}

.feature-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 180, 216, 0.1);
  border-color: var(--color-primary);
}

/* === PLANES === */
.plans {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .plans {
    flex-direction: row;
    justify-content: space-evenly;
  }
}

.plan {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, border 0.3s;
  border: 1px solid #222;
  font-weight: 600;
  color: var(--color-text);
  width: 260px;
  text-align: center;
}

.plan h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.plan:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.plan:first-child {
  border-color: var(--color-bronze);
  box-shadow: 0 0 25px rgba(205, 127, 50, 0.3);
}

.plan.highlighted {
  border-color: var(--color-silver);
  box-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.plan:last-child {
  border-color: var(--color-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

/* === LIVE GAMES === */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.live-card {
  background-color: #111;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 14px;
  color: var(--color-text);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.live-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(0, 180, 216, 0.15);
}

.live-card.live {
  border-color: red;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-muted);
}

.teams {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.time {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
}

.status-badge.live {
  background: red;
  color: #fff;
}

.status-badge.upcoming {
  background: #333;
  color: var(--color-muted);
}

/* === 🦶 FOOTER === */
.footer {
  background: #0a0a0a;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid #222;
}

.footer p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.footer-cta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.footer .socials a {
  margin: 0 10px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer .socials a:hover {
  color: var(--color-secondary);
}

/* === 💨 ANIMACIONES === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: float-up 0.5s forwards;
}

@keyframes float-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 🌓 MODO CLARO DETALLES === */

@media screen and (min-width: 769px) {
  #menu-toggle {
    display: none !important;
  }
}

/* === ⚠️ ALERTAS === */
.alert-error {
  background-color: #2c0b0e;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

.alert-error::before {
  content: "⚠️";
  font-size: 1.2rem;
}

/* === ✅ MENSAJE DE ÉXITO === */
.alert-success {
  background-color: #0d2c1f;
  color: #80ff72;
  border: 1px solid #80ff72;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(128, 255, 114, 0.2);
}

.alert-success::before {
  content: "✅";
  font-size: 1.2rem;
}

/* === 💎 RESPONSIVE DESIGN IMPROVEMENTS === */
/* 
   Enhanced responsive design system to ensure optimal viewing
   across all device sizes from small mobile to large desktop.
*/

/* General responsive container - Centers content on all devices */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === 📱 RESPONSIVE DESIGN === */
/* 
   Additional responsive improvements to ensure proper display on all devices
*/

/* Ensure all content is properly contained */
@media screen and (max-width: 768px) {
  /* Hero section */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 4rem 1rem 2rem;
    box-sizing: border-box;
  }
  
  .hero-content {
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-subtitle {
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-badges {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Sections */
  .section {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .section-title {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* Center cards properly */
  .plan, 
  .feature-card, 
  .live-card {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
  .features-grid, 
  .live-grid {
    grid-template-columns: 1fr;
    place-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Enable horizontal scrolling only for tables */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  th, td {
    min-width: 120px;
    white-space: nowrap;
  }
  
  /* Forms */
  input, textarea, select, button {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Game headers */
  .game-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .teams, .time {
    text-align: center;
    width: 100%;
  }
}

/* Small phones optimization */
@media screen and (max-width: 380px) {
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Landscape mode fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 450px;
    padding: 3rem 1rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn-primary, .btn-secondary {
    width: auto;
    min-width: 140px;
  }
  
  .nav-links.show {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Ensure proper hamburger menu functionality */
#menu-toggle:checked ~ .nav-links {
  display: flex;
}

/* Added utility classes for responsive design */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ensure hamburger menu works correctly */
#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .nav-links {
  transform: translateY(0);
  display: flex;
}

/* === DESACTIVAR MENÚ HAMBURGUESA EN DESKTOP === */
@media screen and (min-width: 769px) {
  #menu-toggle,
  .hamburger {
    display: none !important;
  }
}

/* === 🔍 NFL SEARCH BOX VISIBILITY FIX === */
/* Ensure search box is always visible and positioned above other elements */

.search-container {
  position: relative !important;
  z-index: 100 !important;
  display: block !important;
  visibility: visible !important;
}

.game-search-bar {
  position: relative !important;
  z-index: 101 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.team-search-dropdown {
  position: absolute !important;
  z-index: 102 !important;
}

/* Ensure sport filters container doesn't hide search */
.sport-filters {
  position: relative !important;
  z-index: 50 !important;
}

/* Ensure no-games-message doesn't overlay search */
.no-games-message {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 2rem !important;
  padding: 2rem !important;
  text-align: center !important;
  background: rgba(26, 26, 26, 0.8) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Additional search box styling for better visibility */
.search-container input.game-search-bar {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 25px !important;
  width: 100% !important;
  max-width: 300px !important;
  transition: all 0.3s ease !important;
}

.search-container input.game-search-bar:focus {
  border-color: var(--color-primary) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2) !important;
  outline: none !important;
}

.search-container input.game-search-bar::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* === 📱 RESPONSIVE UTILITIES === */
/* These utility classes help ensure content is properly centered and contained on mobile devices */

/* Add this at the end of your CSS file */

.mobile-container {
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  margin: 0 auto;
}

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

/* Table wrapper for horizontal scrolling */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Ensure hamburger menu is hidden on desktop */
@media screen and (min-width: 769px) {
  #menu-toggle, 
  .hamburger {
    display: none !important;
  }
}

/* Ensure proper mobile display of all content */
@media screen and (max-width: 768px) {
  /* Hide/show classes */
  .mobile-hide {
    display: none !important;
  }
  
  .desktop-hide {
    display: block !important;
  }
  
  /* Proper sizing for tap targets */
  a, button, .btn-primary, .btn-secondary, .btn-ghost, input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
    font-size: 16px;
  }
  
  /* Ensure proper scrolling */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Cards in grid layouts */
  .features-grid,
  .live-grid,
  .plans {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  /* Ensure footer links are properly spaced */
  .footer a {
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix for any fixed position elements */
  .fixed-element {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* Small phone optimization */
@media screen and (max-width: 380px) {
  /* Smaller hero title with minimum readable size */
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  /* Reduce padding to maximize content space */
  .section {
    padding: 3rem 0.75rem;
  }
  
  .plan, 
  .feature-card, 
  .live-card {
    padding: 1.25rem;
  }
}

/* Tablet optimization - prevent awkward middle sizes */
@media screen and (min-width: 481px) and (max-width: 768px) {  
  /* Allow two cards side by side on larger screens */
  @media (orientation: landscape) {
    .features-grid,
    .live-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      max-width: 650px;
      margin: 0 auto;
    }
  }
}

/* Ensure proper touch functionality on mobile devices */
@media (hover: none) {
  /* Remove hover states that could cause issues */
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-ghost:hover,
  .feature-card:hover,
  .plan:hover,
  .live-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* === 🔍 TARGETED ELEMENT FIXES === */
/* These fixes target specific elements identified in the HTML that need additional responsive improvements */

/* Better responsive fix for game insights */
@media screen and (max-width: 768px) {
  /* Fix betting insights layout */
  .betting-insights {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  
  .insight {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
  }
  
  /* Fix footer grid layout */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .socials {
    justify-content: center;
  }
  
  /* Fix hamburger menu animation */
  #menu-toggle:checked ~ .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  #menu-toggle:checked ~ .hamburger div:nth-child(2) {
    opacity: 0;
  }
  
  #menu-toggle:checked ~ .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Fix highlighted plan */
  .plan.highlighted::before {
    width: auto;
    white-space: nowrap;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    top: -10px;
  }
  
  /* Fix feature-card, plan and step to fill available space */
  .feature-card, .plan, .step {
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
  }
  
  /* Fix hero animation for smaller screens */
  .hero-title span {
    display: inline;
  }
  
  /* Fix hero title on small screens */
  @media screen and (max-width: 380px) {
    .hero-title {
      font-size: 1.75rem;
    }
    
    .hero-title span {
      display: inline;
    }
    
    .hero-subtitle {
      font-size: 1rem;
    }
  }
}

/* Fix grid layouts */
@media screen and (max-width: 1200px) {
  .features-grid, .plans, .steps {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .footer-grid {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  .features-grid, .plans, .steps {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  /* Center align plans on mobile */
  .plans {
    justify-items: center;
  }
  
  /* Center align steps on mobile */
  .steps {
    justify-items: center;
  }

  /* Ensure section titles are properly spaced */
  .section-title {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure plan fit mobile screens */
  .plan {
    max-width: 350px;
    width: 100%;
  }
}

/* Add proper container width control */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Fix status badge on mobile */
@media screen and (max-width: 768px) {
  .status-badge {
    display: inline-block;
    text-align: center;
  }
  
  /* Better handling of footer bottom on mobile */
  .footer-bottom {
    margin-top: 2rem;
    padding: 0 1rem;
  }
  
  /* Fix navigation links in hamburger menu */
  .nav-links a {
    justify-content: center;
    width: 100%;
  }
}

/* Fix Landscape Mode Issues */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Fix navbar in landscape */
  .navbar {
    height: auto;
  }
}

/* Hide checkbox for hamburger menu */
.hidden {
  display: none;
}

/* Ensure proper hamburger menu functionality */
#menu-toggle:checked ~ .nav-links {
  display: flex;
}

/* Hamburger menu animation */
#menu-toggle:checked ~ .hamburger div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked ~ .hamburger div:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .hamburger div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === 📊 RESPONSIVE TABLE FIXES === */
/* These fixes ensure that tables and all content are properly displayed on mobile */

/* Add to the end of your CSS */

/* Fix for all table elements */
@media screen and (max-width: 768px) {
  /* Tables with horizontal scroll */
  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    border-collapse: collapse;
  }
  
  /* Ensure all content is centered */
  .center-mobile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Ensure all elements have proper box-sizing */
  * {
    box-sizing: border-box;
  }
  
  /* Ensure horizontal centering for all sections */
  section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
  }
  
  /* Ensure buttons are properly sized for touch */
  button, 
  .btn-primary, 
  .btn-secondary, 
  .btn-ghost, 
  .nav-links a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 16px;
  }
  
  /* Ensure plan cards look good on all devices */
  .plan {
    width: 100%;
    max-width: 350px;
    margin: 1rem auto;
  }
  
  /* Ensure proper line-height for readability */
  p, li, a {
    line-height: 1.5;
  }
}

/* Ensure proper layout in the smallest phones */
@media screen and (max-width: 320px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Final check for any hover states that might cause issues on touch devices */
@media (hover: none) and (pointer: coarse) {
  a:hover, button:hover, .btn-primary:hover, .btn-secondary:hover, .feature-card:hover, .plan:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Hide spin buttons on number inputs for WebKit browsers (Chrome, Safari, Edge, Opera) */
#parlay-stake::-webkit-outer-spin-button,
#parlay-stake::-webkit-inner-spin-button,
#parlay-odds::-webkit-outer-spin-button, /* Added rule for potential odds input */
#parlay-odds::-webkit-inner-spin-button { /* Added rule for potential odds input */
  -webkit-appearance: none;
  margin: 0;
}

/* Hide spin buttons on number inputs for Firefox */
#parlay-stake,
#parlay-odds { /* Added rule for potential odds input */
  -moz-appearance: textfield;
}

/* Parlay Tracker Bet Input Styling */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.4rem; /* Increased slightly for better spacing */
  color: var(--color-text-secondary);
}

.bet-line {
  background-color: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--color-text);
  font-size: 1rem;
  width: 120px; /* Set a consistent width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  height: 40px; /* Set a consistent height */
  line-height: 1; /* Adjust line height for vertical centering if needed */
}

.bet-line::placeholder {
  color: var(--color-text-placeholder);
}

.bet-line:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.3); /* Subtle focus glow */
}

/* Specific styles for the potential payout display */
.payout-value {
  font-weight: bold;
  color: #80ff72; /* Keep the green color */
  display: flex; /* Use flex to center content */
  align-items: center; /* Center vertically */
  justify-content: flex-start; /* Align text to the left */
  background-color: var(--color-background-secondary); /* Match input background */
  border: 1px solid var(--color-border); /* Match input border */
  width: 120px; /* Match input width */
  height: 40px; /* Match input height */
  padding: 0.6rem 0.8rem; /* Match input padding */
  box-sizing: border-box; /* Include padding and border in total size */
}

