/* Base */
body { background: #121212; 
}

.hidden-view {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.visible-view {
  visibility: visible;
  height: auto;
}

/* Streak / Points */
.streak,
#totalPointsDisplay {
  background: #ff4757;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* Match Cards */
.match-card {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.match-header {
  font-weight: bold;
  font-size: 0.9rem;
  color: #ff9500;
}

.prediction-percent {
  font-size: 0.8rem;
  color: #aaa;
}

.prediction-bar {
  height: 10px;
  border-radius: 5px;
  margin-top: 3px;
}

.hot-match {
  border-left: 4px solid #ff4757 !important;
}

.countdown {
  font-family: monospace;
  color: #ff9500;
  font-size: 0.9rem;
}

/* Layout */
.container-fluid { width: 100%; }

/* CHANGE THIS: Only apply flex-row to desktop */
@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative; /* Context for absolute children */
  }

  /* Force dropdown to float over content instead of pushing navbar */
  .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    margin-top: 10px; /* Space from the toggle */
  }
}

/* Navbar Brand */
.navbar-brand img {
  width: 35px;
  height: 35px;
}

/* Active Sport Indicator */
.nav-link.active {
  position: relative;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #0d6efd;
  border-radius: 2px;
}

.mobile-sports-bar .nav-link.active::after {
  bottom: 0;
}

/* About Page */
.about-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  color: white;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1 {
  font-size: 36px;
  color: #ff9800;
}

.about-section {
  margin-bottom: 40px;
  line-height: 1.7;
}

.about-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ff9800;
}

.download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.download-buttons img,
.download-badges img {
  width: 150px;
  transition: transform 0.3s;
}

.download-buttons img:hover {
  transform: scale(1.05);
}

p, li{color:white}
/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-about {
  flex: 2;
  min-width: 250px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #f1f1f1;
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: #ffc107;
}

.footer-social {
  flex: 1;
  min-width: 150px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons i:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  margin-top: 20px;
  color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .download-badges img {
    width: 100px;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    width: 32px;
    height: 32px;
  }

  .streak,
  .text-warning {
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
  }

  .btn.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .mobile-sports-bar .nav-link {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .mobile-sports-bar .material-symbols-outlined {
    font-size: 1.25rem;
  }
}

@media (max-width: 700px) {
  .about-header h1 { font-size: 28px; }
  .download-buttons img { width: 120px; }
}

@media (max-width: 500px) {
  .about-container { margin: 30px 10px; }
  .about-section h2 { font-size: 20px; }
  .footer-about p,
  .footer-links ul li a {
    font-size: 13px;
  }
}
