﻿/* ================ BASE CAROUSEL STYLES ================ */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  width: 100%;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 2rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 200px;
}

.carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.carousel-item h4 {
  margin: 0.75rem 0;
  padding: 0 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* ================ CAROUSEL VARIANTS ================ */
.tier2-carousel .carousel-item {
  width: 220px;
}

.tier2-carousel .carousel-item img {
  height: 120px;
  object-fit: contain;
  padding: 0.5rem;
  margin: 0 auto;
}

.tier2-carousel .carousel-item h4 {
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paid-links-carousel .carousel-item {
  width: 180px;
}

.paid-links-carousel .carousel-item img {
  height: 100px;
  object-fit: contain;
  padding: 0.5rem;
  margin: 0 auto;
}

.paid-links-carousel .carousel-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

/* ================ CONTROLS ================ */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 116, 162, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  borderRadius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0, 90, 130, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

.carousel-control::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.carousel-control.prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.carousel-control.next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* ================ DROPDOWN STYLES ================ */
.category-dropdown-wrapper {
  text-align: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

.category-dropdown {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 300px;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.category-dropdown:hover {
  border-color: #0074a2;
  box-shadow: 0 0 0 1px #0074a2;
}

.category-dropdown:focus {
  outline: none;
  border-color: #0074a2;
  box-shadow: 0 0 0 2px rgba(0, 116, 162, 0.2);
}

/* ================ MOBILE MENU STYLES ================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #333;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.mobile-menu-toggle.open .hamburger {
  background: transparent;
}

.mobile-menu-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ================ THEME SUPPORT ================ */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #0074a2;
  --secondary-color: #f8f9fa;
  --border-color: #dddddd;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #f0f0f0;
  --primary-color: #0096c7;
  --secondary-color: #2d2d2d;
  --border-color: #444444;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ================ RESPONSIVE ADJUSTMENTS ================ */
@media (max-width: 768px) {
  .carousel {
    margin: 1.5rem 0;
  }
  
  .carousel-track {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .carousel-item {
    width: 160px;
  }
  
  .tier2-carousel .carousel-item {
    width: 180px;
  }
  
  .paid-links-carousel .carousel-item {
    width: 140px;
  }
  
  .carousel-control {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    width: 140px;
  }
  
  .carousel-item h4 {
    font-size: 0.9rem;
  }
  
  .category-dropdown {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ================ SITE FOOTER STYLES ================ */
.site-footer {
  background: #005288;
  color: #fff;   /* Ensures all child text is white */
  text-align: center;
  padding: 10px;
}

.site-footer .footer-content {
  max-width: 960px;
  margin: 0 auto;
}

.site-footer .footer-content .footer-text,
.site-footer .footer-content a {
  color: #fff;                  /* Force white for all text and links */
}

.site-footer .footer-content a {
  text-decoration: underline;   /* Underline links */
}

.site-footer .footer-content a:hover {
  text-decoration: underline;
}

/* ================ BET PREDICTOR STYLES ================ */
.bet-predictor {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bet-predictor h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-align: center;
}

.bet-predictor label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 500;
  color: var(--text-color);
}

.bet-predictor select,
.bet-predictor input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bet-predictor select:focus,
.bet-predictor input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 116, 162, 0.2);
}

.bet-predictor button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bet-predictor button:hover:not(:disabled) {
  background-color: #0074a2;
  transform: translateY(-1px);
}

.bet-predictor button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.bet-predictor #bet-result {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}

/* ================ $1 BET PREDICTOR PAID SECTION ================ */
.bet-predictor-paid-section {
  margin-top: 1.5rem;
  text-align: center;
}

/* Updated to match site primary blue styling */
.bet-predictor-paid-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bet-predictor-paid-btn:hover {
  background-color: #005f7d;
  transform: translateY(-1px);
}

.bet-predictor-paid-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.bet-predictor-article-output {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: left;
  white-space: pre-wrap;
}

/* Optional: style bankroll percentage line inside bet-result */
.bet-predictor #bet-result .bankroll-percentage {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

/* Sport bar dropdown menu visibility toggle */
#sport-bar-menu {
  display: none;
  position: absolute;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 160px;
  z-index: 1000;
}

#sport-bar-menu.open {
  display: block;
}

#sport-bar-menu .dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#sport-bar-menu .dropdown-item:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 480px) {
  .bet-predictor {
    padding: 1rem;
    margin: 1rem;
  }
}