/* ================================================
   INDEX PAGE - Specific Styles
   ================================================ */

/* Compact Mobile Event Card */
.event-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 12px;
  gap: 10px;
}

.event-row:first-child {
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.event-row:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
}

.event-row-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.event-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.event-row-league {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-row-time {
  white-space: nowrap;
}

.event-row-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-row-team {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.event-row-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  flex-shrink: 0;
}

.event-row-right > .odds-row,
.event-row-odds {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Mobile bet builder row */
.mobile-bet-builder-row {
  width: 100%;
  margin-top: 3px;
}

.mobile-bet-builder-row .bet-builder-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  font-size: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.mobile-bet-builder-row .bet-builder-btn i {
  font-size: 9px;
}

.odds-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  padding: 4px 8px;
  background: var(--odds-bg);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.odds-compact:hover {
  background: var(--odds-bg-hover);
  border-color: var(--primary);
}

.odds-compact.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.odds-compact.selected .odds-compact-label {
  color: rgba(255,255,255,0.9) !important;
}

.odds-compact.selected .odds-compact-value {
  color: white !important;
}

.odds-compact:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.odds-compact-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.odds-compact-value {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--odds-text);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.filter-select {
  flex: 1;
  padding: 8px 32px 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Sports pills compact */
.sports-pills {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-primary);
}

.sports-pills::-webkit-scrollbar {
  display: none;
}

.sport-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sport-pill:hover {
  border-color: var(--primary);
}

.sport-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.sport-pill i {
  font-size: 11px;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-secondary);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
}

.section-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Events list container */
.events-list {
  padding: 0 12px 12px 12px;
}

/* Mobile Collapsible Bet Slip */
.mobile-slip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-slip.visible {
  transform: translateY(0);
}

.mobile-slip-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--primary);
  cursor: pointer;
}

.mobile-slip-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-slip-count {
  background: white;
  color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.mobile-slip-label {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.mobile-slip-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-slip-stake {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.mobile-slip-arrow {
  color: white;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-slip.expanded .mobile-slip-arrow {
  transform: rotate(180deg);
}

.mobile-slip-content {
  display: none;
  max-height: 50vh;
  overflow-y: auto;
  overflow-anchor: auto;
  overscroll-behavior: contain;
  background: var(--bg-surface);
}

.mobile-slip.expanded .mobile-slip-content {
  display: block;
}

.mobile-slip-items {
  padding: 12px;
}

.mobile-slip-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.mobile-slip-item:last-child {
  margin-bottom: 0;
}

.mobile-slip-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.mobile-slip-item-event {
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-slip-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 14px;
}

.mobile-slip-item-remove:hover {
  color: var(--error);
}

.mobile-slip-item-selection {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mobile-slip-item-market {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mobile-slip-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mobile-slip-item-odds {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.mobile-slip-item-stake {
  flex: 1;
  max-width: 100px;
}

.mobile-slip-item-stake input {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  text-align: right;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
}

.mobile-slip-item-stake input:focus {
  outline: none;
  border-color: var(--primary);
}

.mobile-slip-summary {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.mobile-slip-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.mobile-slip-row:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.mobile-slip-return {
  color: var(--success);
}

.mobile-slip-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface);
}

.mobile-slip-clear {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13px;
}

.mobile-slip-place {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.mobile-slip-balance {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-secondary);
}

.mobile-slip-empty {
  padding: 30px 20px;
  text-align: center;
}

.mobile-slip-empty i {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mobile-slip-empty p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile specific overrides */
@media (max-width: 768px) {
  :root {
    --header-height: 50px;
  }
  
  .header-inner {
    padding: 0 12px;
  }
  
  .logo-img {
    width: 90px;
    height: auto;
  }
  
  .logo-text {
    font-size: 15px;
  }
  
  .balance-display {
    padding: 4px 8px;
    font-size: 12px;
    gap: 4px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .main-content {
    padding: 0;
    padding-bottom: 60px;
  }
  
  .layout-with-betslip {
    display: block;
  }
  
  .betslip {
    display: none;
  }
  
  .hero {
    display: none;
  }
  
  .nav {
    display: none;
  }
  
  .footer {
    padding: 16px 12px;
    padding-bottom: 100px;
  }
  
  .footer-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-link {
    font-size: 11px;
  }
  
  .footer-disclaimer {
    padding: 10px;
    margin-top: 12px;
  }
  
  .footer-disclaimer p {
    font-size: 10px;
  }
  
  .footer-copyright {
    font-size: 10px;
    margin-top: 10px;
  }
}

@media (min-width: 769px) {
  .mobile-slip {
    display: none !important;
  }
}

/* Desktop Layout */
.desktop-layout {
  display: none;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  gap: 16px;
}

.desktop-main {
  flex: 1;
  min-width: 0;
}

.desktop-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 16px;
}

.desktop-filters-left {
  display: flex;
  gap: 10px;
}

.desktop-filters-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.desktop-search i {
  color: var(--text-muted);
  font-size: 13px;
}

.desktop-search input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 150px;
  outline: none;
}

.desktop-search input::placeholder {
  color: var(--text-muted);
}

.desktop-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.desktop-events {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

/* Desktop Event Row */
.desktop-event-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  transition: background 0.15s;
}

.desktop-event-row:hover {
  background: var(--bg-hover);
}

.desktop-event-row:last-child {
  border-bottom: none;
}

.desktop-event-time {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.desktop-event-time-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.desktop-event-time-date {
  font-size: 10px;
  color: var(--text-muted);
}

.desktop-event-teams {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.desktop-event-team {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.desktop-event-league {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.desktop-event-odds {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Desktop Odds Button */
.odds-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 50px;
  padding: 6px 12px;
  background: var(--odds-bg);
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.odds-desktop:hover {
  background: var(--odds-bg-hover);
  border-color: var(--primary);
}

.odds-desktop.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.odds-desktop.selected .odds-desktop-label {
  color: rgba(255,255,255,0.8);
}

.odds-desktop.selected .odds-desktop-value {
  color: white;
}

.odds-desktop-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.odds-desktop-value {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--odds-text);
}

.desktop-event-more {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.desktop-event-more:hover {
  background: var(--primary);
  color: white;
}

/* Desktop Bet Slip */
.desktop-slip {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 80px;
}

.desktop-slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 14px;
}

.desktop-slip-count {
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.desktop-slip-body {
  flex: 1;
  overflow-y: auto;
  overflow-anchor: auto;
  overscroll-behavior: contain;
  padding: 12px;
}

.desktop-slip-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.desktop-slip-empty i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.desktop-slip-empty p {
  font-size: 13px;
  margin: 0;
}

.desktop-slip-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.desktop-slip-item:last-child {
  margin-bottom: 0;
}

.desktop-slip-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.desktop-slip-item-event {
  font-size: 11px;
  color: var(--text-muted);
}

.desktop-slip-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
}

.desktop-slip-item-remove:hover {
  color: var(--error);
}

.desktop-slip-item-selection {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.desktop-slip-item-market {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.desktop-slip-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-slip-item-odds {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.desktop-slip-item-stake input {
  width: 90px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  text-align: right;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
}

.desktop-slip-item-stake input:focus {
  outline: none;
  border-color: var(--primary);
}

.desktop-slip-summary {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.desktop-slip-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.desktop-slip-row:last-child {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 14px;
}

.desktop-slip-row .return {
  color: var(--success);
}

.desktop-slip-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.desktop-slip-footer .btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-slip-balance {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.desktop-slip-clear {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-top: 4px;
}

.desktop-slip-clear:hover {
  color: var(--error);
}

/* Desktop styles */
@media (min-width: 769px) {
  .filter-bar,
  .sports-pills,
  .events-list,
  .section-header {
    display: none;
  }
  
  .desktop-layout {
    display: flex;
  }
  
  .event-row {
    display: none;
  }
}

@media (max-width: 768px) {
  .event-card-desktop {
    display: none !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* Empty state compact */
.empty-state-compact {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-compact i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-state-compact p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile nav styles */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-surface);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-links { padding: 16px; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}
@media (min-width: 769px) {
  .mobile-nav, .mobile-nav-overlay, .mobile-menu-btn { display: none !important; }
}

/* ================================================
   Loading States
   ================================================ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-size: 14px;
  margin: 0;
}

/* ================================================
   Team Logos
   ================================================ */
.team-logo-mini {
  width: 14px;
  height: 14px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.team-logo-small {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.event-row-team {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================
   League Pills Enhancement
   ================================================ */
.sport-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-count {
  font-size: 10px;
  background: var(--primary);
  color: white;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  font-weight: 600;
}

/* ================================================
   Desktop Date Headers
   ================================================ */
.desktop-date-header {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-event-team {
  display: flex;
  align-items: center;
}

/* ================================================
   Empty State Enhancement  
   ================================================ */
.empty-state-compact small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* ================================================
   Responsive Improvements
   ================================================ */
@media (max-width: 768px) {
  .event-row-teams {
    gap: 2px;
  }
  
  .event-row-team {
    font-size: 12px;
  }
  
  .team-logo-mini {
    width: 12px;
    height: 12px;
  }
}

/* ================================================
   Odds Buttons Selected State Enhancement
   ================================================ */
.odds-compact.selected,
.odds-desktop.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  transform: scale(1.02);
}

.odds-compact.selected .odds-compact-label,
.odds-compact.selected .odds-compact-value,
.odds-desktop.selected .odds-desktop-label,
.odds-desktop.selected .odds-desktop-value {
  color: white !important;
}

/* ================================================
   League Headers - Group matches by competition
   ================================================ */

/* Mobile League Header */
.league-header-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border-left: 3px solid var(--primary);
  margin-top: 12px;
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.league-header-mobile:first-child {
  margin-top: 0;
}

.league-logo-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-header-mobile .league-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.league-header-mobile .league-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.league-header-mobile .league-count {
  font-size: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
}

/* Adjust event rows after league header */
.league-header-mobile + .event-row {
  border-top: none;
  border-radius: 0;
}

/* Desktop League Header */
.league-header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
}

.league-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.league-logo-medium {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.league-header-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.league-header-country {
  font-size: 11px;
  color: var(--text-muted);
}

.league-header-count {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg-surface);
  border-radius: 12px;
}

/* Desktop event row date label */
.desktop-event-date-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.event-row-date {
  color: var(--text-secondary);
}

/* Make first event row after league header look connected */
.league-header-desktop + .desktop-event-row {
  border-top: none;
}

/* ================================================
   Desktop Bet Slip - Accumulator Support
   ================================================ */

/* Bet Type Toggle */
.desktop-slip-toggle {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.slip-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slip-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.slip-toggle-btn.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Accumulator Section */
.desktop-slip-acca {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
}

.desktop-slip-acca-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.desktop-slip-acca-header .acca-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-slip-acca-header .acca-name i {
  color: var(--primary);
}

.desktop-slip-acca-header .acca-odds {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.desktop-slip-acca-stake {
  margin-bottom: 12px;
}

.desktop-slip-acca-stake input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Mono', monospace;
  text-align: center;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
}

.desktop-slip-acca-stake input:focus {
  outline: none;
  border-color: var(--primary);
  scroll-margin: 20px;
}

/* Prevent scroll jumping when updating values */
.desktop-slip-summary,
.desktop-slip-footer,
.desktop-slip-acca-return {
  overflow-anchor: none;
}

.desktop-slip-acca-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}

.desktop-slip-acca-return .return {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
}

/* ================================================
   Mobile Bet Slip - Accumulator Support
   ================================================ */

/* Bet Type Toggle */
.mobile-slip-toggle {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.mobile-toggle-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

.mobile-toggle-btn:hover {
  background: var(--bg-hover);
}

.mobile-toggle-btn.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Accumulator Section */
.mobile-slip-acca {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
}

.mobile-slip-acca-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.mobile-slip-acca-header i {
  color: var(--primary);
  margin-right: 6px;
}

.mobile-slip-acca-header .acca-odds {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  color: var(--accent);
}

.mobile-slip-acca-stake {
  margin-bottom: 10px;
}

.mobile-slip-acca-stake input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'DM Mono', monospace;
  text-align: center;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
}

.mobile-slip-acca-stake input:focus {
  outline: none;
  border-color: var(--primary);
  scroll-margin: 20px;
}

/* Prevent scroll jumping when updating values */
.mobile-slip-summary,
.mobile-slip-footer,
.mobile-slip-acca-return {
  overflow-anchor: none;
}

.mobile-slip-acca-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.mobile-slip-acca-return .return {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  color: var(--success);
}

/* ================================================
   Odds Unavailable State
   ================================================ */
.odds-unavailable {
  background: var(--bg-secondary) !important;
  border: 1px dashed var(--border-subtle) !important;
  opacity: 0.6;
}

.odds-unavailable:hover {
  background: var(--bg-hover) !important;
  opacity: 0.8;
}

.odds-unavailable .odds-compact-value,
.odds-unavailable .odds-desktop-value {
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================
   Odds Format Toggle Button
   ================================================ */
.odds-format-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.odds-format-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.odds-format-toggle i {
  font-size: 11px;
}

.odds-format-toggle .toggle-text {
  margin-left: 4px;
}

/* ================================================
   Day Toggle (Today/Tomorrow/Week view)
   ================================================ */
.day-toggle {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.day-toggle::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.day-toggle-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.day-toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .day-toggle {
    padding: 2px;
  }
  
  .day-toggle-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Mobile filter bar adjustment */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
  }
  
  .filter-bar .day-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 2px;
    border-radius: 6px;
    flex-shrink: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .filter-bar .day-toggle-btn {
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 4px;
    min-width: fit-content;
  }
  
  .filter-bar .day-toggle-btn.active {
    background: var(--primary);
    color: white;
  }
  
  .filter-bar .filter-select {
    flex: 1;
    min-width: 90px;
    max-width: 120px;
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .odds-format-toggle {
    padding: 6px 10px;
    font-size: 11px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }
  
  .odds-format-toggle .toggle-text {
    display: none;
  }
}

/* Country tag in mobile league header */
.league-country-tag {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  flex-shrink: 0;
}

/* ================================================
   SEO CONTENT SECTION
   ================================================ */

.seo-content {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0f1a 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 16px 32px;
  margin-top: 40px;
}

.seo-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.seo-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-heading i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* About Section */
.seo-about {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-about p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.seo-about p:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.seo-faq {
  margin-bottom: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.faq-question i {
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .seo-content {
    padding: 32px 16px 24px;
    margin-top: 20px;
  }
  
  .seo-heading {
    font-size: 1.25rem;
  }
  
  .seo-heading i {
    font-size: 1rem;
  }
  
  .seo-about {
    margin-bottom: 32px;
    padding-bottom: 28px;
  }
  
  .seo-about p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .faq-item {
    padding: 16px 18px;
  }
  
  .faq-question {
    font-size: 0.9rem;
    gap: 8px;
  }
  
  .faq-question i {
    margin-top: 4px;
  }
  
  .faq-answer {
    font-size: 0.85rem;
    padding-left: 18px;
  }
}

