/* Theme Switcher — matches LanguageSwitcher style */

.theme-switcher {
  position: relative;
  display: inline-block;
}

.theme-current-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.theme-current-btn:hover {
  color: var(--text-primary);
}

/* Dropdown */
.theme-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  border: 1px solid var(--white-12);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--black-50);
  min-width: 120px;
  overflow: hidden;
  z-index: 1000;
  animation: themeDropdownFadeIn 0.15s ease-out;
}

@keyframes themeDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--white-90);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Proxima Nova', sans-serif;
  text-align: left;
}

.theme-option:hover {
  background: var(--white-10);
}

.theme-option.active {
  color: var(--accent-blue);
}

.theme-option:not(:last-child) {
  border-bottom: 1px solid var(--white-8);
}

.theme-name {
  font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .theme-current-btn {
    padding: 3px 4px;
  }
}

.top-leagues {
  display: flex;
  overflow-x: auto;
  padding: 10px 2px 9px;
  gap: 10px;
}



.top-league-name {
    font-family: 'Proxima Nova Cond', sans-serif;}

.league-card {
  background: var(--gradient-top-league);
  border-radius: 4px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: bold;
  line-height: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.league-card:hover {
  color: var(--text-primary);
}

.league-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.top-leagues-banners {
  overflow-x: auto;
  margin-top: 16px;
}

.banners-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100vw;
}

.banner-svg {
  flex: 0 0 100vw;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 5px;
}

.banner-svg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.banner-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-quaternary);
  transition: background-color 0.3s;
}

.banner-dot.active {
  background-color: var(--text-primary);
}

.banner-slider-container {
  overflow: hidden;
}

.banner-slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  justify-content: center;
}

.banner-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  padding: 0 10px;
  box-sizing: border-box;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


@media (min-width: 1024px) {
  .top-leagues {
    padding: 0 2px 0;
    margin-bottom: 9px;
  }
}
.sportstab-tabs {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 5px;
  background-color: #29292c;
}

.sportstab-tab {
  align-items: center;
  background-color: rgba(44, 44, 46, 0);
  border: 0;
  border-radius: 4px;
  color: rgb(255, 255, 255);
  display: flex;
  cursor: pointer;
  font-family: "Proxima Nova", sans-serif;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  line-height: 15px;
  flex-direction: column;
  padding: 5px 5px 5px;
  white-space: nowrap;
}

.sportstab-tab.active {
  background-color: transparent;
  color: #3478f6;
}
@media (min-width: 1024px) {
.sportstab-tab:hover {
  color: #fff;
}
.sportstab-tab.active:hover {
  background-color: transparent;
  color: #3478f6;
}
}
.sportstab-icon {
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sportstab-icon svg {
  width: 100%;
  height: 100%;
}

.sportstab-starting-block {
  background-color: #000;
  padding: 10px 20px 5px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sportstab-starting-block img {
  width: 18px;
  height: 18px;
}

.sportstab-starting-block span {
  color: white;
  font-weight: bold;
  font-size: 15px;
  font-family: "Proxima Nova", sans-serif;
}

.sportstab-title {
  color: #fff;
  font-family: Proxima Nova, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.sportstab-header {
  background-color: black;
  padding: 12px 5px 5px 12px;
  display: none;
  gap: 12px;
}

.wrap-sportstab-header {
  display: flex;
  border-bottom: 1px solid #363636;
  border-top: 1px solid #363636;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Mobile only - offset from header */
@media (max-width: 1023px) {
  .wrap-sportstab-header {
    top: 36px;
  }
}

.sportstab-tabs { scroll-behavior: smooth; }
/* StarIcon - Phosphor star for favorites */

.star-icon {
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.star-icon:hover:not(.star-icon--disabled) {
  transform: scale(1.15);
}

.star-icon:active:not(.star-icon--disabled) {
  transform: scale(0.95);
}

/* Disabled state */
.star-icon--disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.star-icon--disabled:hover {
  transform: none;
}

/* SportTabs - Reusable sport tabs component */

.st-tabs {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 3px 0;
  background-color: var(--bg-primary);
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.st-tabs::-webkit-scrollbar {
  display: none;
}

.st-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
          user-select: none;
}

.st-tab.active {
  color: var(--accent-blue);
}

/* Favorites tab - golden star */
.st-tab-favorites.active {
  color: var(--accent-yellow);
}

/* Hover only on devices that support hover (not touch) */
@media (hover: hover) {
  .st-tab:hover:not(.active) {
    color: var(--accent-blue);
  }

  .st-tab-favorites:hover:not(.active) {
    color: var(--accent-yellow);
  }
}

/* Icon wrapper for badge positioning */
.st-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.st-icon-svg {
  width: 100%;
  height: 100%;
}

/* Fallback icon - circle with letter */
.st-icon-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-quaternary);
  color: var(--text-on-accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-tab.active .st-icon-fallback {
  background: var(--accent-blue);
}

.st-label {
  font-weight: 500;
  pointer-events: none;
}

/* Badge with count */
.st-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 15px;
  min-height: 15px;
  padding: 1px;
  background-color: var(--accent-red);
  border-radius: 999px;
  color: var(--text-on-accent);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

/* Desktop */
@media (min-width: 1024px) {
  .st-tabs {
    padding: 4px 0 3px;
  }

  .st-tab {
    gap: 1px;
  }

  .st-icon {
    width: 28px;
    height: 28px;
  }
}

/* SearchPage.css */

/* Overlay backdrop */
.search-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 999999;
  overflow-y: auto;
  animation: searchOverlayFadeIn 0.2s ease-out;
}

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

.search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5px 5px; 
  min-height: calc(100vh - 200px);
}

/* Overlay mode styles */
.search-page-overlay {
  padding-top: 60px;
  min-height: 100vh;
}

.search-header {
  text-align: center;
  margin-bottom: 20px;
}

.search-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.search-input-container {
  position: sticky;
  top: 0; /* Below header */
  z-index: 100;
  padding: 12px 14px;
  margin-top: 0; /* Position directly under header */
  margin-bottom: 24px;
  margin-left: -10px;
  margin-right: -10px;
}

/* Removed - keeping sticky in overlay mode */

/* Close button for overlay mode */
.search-close-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--white-70);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.search-close-btn:hover {
  color: var(--text-primary);
}

.search-input-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-45);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 6px 16px 6px 40px;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px; /* Prevents zoom on iOS */
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 2px solid var(--white-12);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: var(--white-45);
}

.search-input:focus {
  background: var(--white-10);
  border-color: var(--white-20);
}

.search-loading {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  color: var(--white-60);
}

.search-hint {
  text-align: center;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  color: var(--white-50);
  margin-top: 12px;
}

.search-results {
  margin-top: 24px;
}

.search-no-results {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 18px;
  color: var(--white-50);
}

.search-section {
  margin-bottom: 32px;
}

.search-section-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-badge {
  display: inline-block;
  background: var(--accent-red);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 5px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-card {
  background-color: var(--bg-elevated);
  border-radius: 4px;
  padding: 5px 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--black-30);
}

.search-result-header {
  gap: 0;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-wrap: wrap;
}

/* When there's no subheader (live events), add border */
.search-result-header:not(:has(+ .search-result-subheader)) {
  border-bottom: 1px solid var(--white-5);
}

/* When there's a subheader (upcoming events), change layout */
.search-result-header:has(+ .search-result-subheader) {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 4px;
  justify-content: space-between;
}

.search-result-subheader {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--white-5);
  margin-bottom: 0;
}

.search-result-sport {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-green-muted);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-league {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  color: var(--white-80);
  flex: 1 1;
}

/* When league is in subheader, take full width */
.search-result-subheader .search-result-league {
  flex: initial;
  display: block;
  width: 100%;
}

.search-result-time {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--white-60);
  white-space: nowrap;
}

.search-result-teams {
  margin-bottom: 0;
}

.search-result-team {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-green);
  margin-left: 8px;
}

.search-result-odds {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--white-5);
}

.search-result-odd {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--white-5);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 3px 2px 4px var(--black-50);
}

.odd-label {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--white-50);
  text-transform: uppercase;
}

.odd-value {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-error {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px;
  color: var(--accent-red);
  background: var(--accent-red-muted);
  border: 1px solid var(--accent-red-muted);
  border-radius: 12px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .search-page {
    padding: 0 5px 5px 5px; /* No top padding on mobile */
  }

  .search-input-container {
    top: 0px; /* Adjusted for mobile header */
    margin-top: 0; /* Position directly under header */
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--separator);
  }

  .search-input-icon {
    left: 34px; /* Adjusted for mobile padding */
  }

  .search-input {
    font-size: 16px; /* Keep 16px to prevent zoom on iOS */
    padding: 12px 16px 12px 40px;
  }

  .search-result-card {
    padding: 8px 10px;
  }

  .search-result-team {
    font-size: 13px;
  }

  .search-result-score {
    font-size: 14px;
  }

  .search-result-header {
    gap: 0;
  }

  .search-result-time {
    margin-left: 0;
  }
}

