:root {
  --bs-primary: #2B2B2B;
}

h1,
h2,
h3,
h4,
h5 {
  color: #1a237e;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
section.bg-dark h2,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5 {
  color: #fff !important;
}

#auth-container button {
  min-width: 34px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  /* espacio entre icono y texto */
}

.list-group li {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.list-group li:hover {
  background-color: #bbdefb;
}

#estatsContainer button {
  margin-left: 0.4em;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.blink {
  animation: blink 1s infinite;
}

#contador {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 2px 6px;
  background-color: #343a40;
  /* fondo oscuro */
  color: white;
  border-radius: 6px;
  min-width: 80px;
  user-select: none;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  margin: 0 auto;
}

#partidosPorFecha .list-group-item {
  font-weight: 600;
}



#marcador {
  font-weight: bold;
  font-size: 3em;
}

#tiempo-faltas {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 20px 0;
  font-size: 1.5em;
}

#faltas {
  display: flex;
  gap: 30px;
}

.faltas-equipo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  max-height: 50px;
}

.body {
  background-color: #F7F7F7 !important;
}

body {
  overflow-x: hidden;
}

.btn-primary,
.bg-primary,
.text-primary {
  background-color: #2B2B2B !important;
  border-color: #2B2B2B !important;
  color: #fff !important;
}

.logo {
  display: inline-block;
  /* Para que tenga tamaño */
  width: 215px;
  /* Ajusta el tamaño deseado */
  height: 50px;
  /* Ajusta el tamaño deseado */
  background-image: url('../img/logo-t.png');
  /* Ruta a tu imagen */
  background-size: contain;
  /* Para que la imagen se escale */
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  /* Oculta texto si hay */
}

.stat-btn {
  width: 34px !important;
  height: 34px !important;
  font-size: 1rem;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

#breadcrumb-container {
  margin-left: 15px;
}

#breadcrumb-container a {
  color: var(--bs-primary) !important;
}



.btn {


  min-width: 40px;
  min-height: 40px;
  font-size: large;
}

/* Foul Lights Indicator */
.foul-lights {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 5px;
}

.foul-dot {
  width: 10px;
  height: 10px;
  background-color: #444;
  /* Dark gray for inactive */
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #666;
}

.foul-dot.active {
  background-color: #ff0000;
  /* Red for active */
  box-shadow: 0 0 5px #ff0000;
  border-color: #ff0000;
}

/* ===== Calendar View Styles ===== */

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

/* Matches Container */
.matches-container {
  overflow-y: auto;
  max-height: 600px;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr !important;
    /* Force single column on mobile */
    gap: 15px;
  }

  .matches-container {
    max-height: none;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
}

/* Month View Grid (Desktop) */
.month-grid {
  display: none;
}

@media (min-width: 768px) {
  .month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }
}


.month-day-cell {
  min-height: 100px;
  border: 1px solid #dee2e6;
  padding: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.month-day-header {
  font-weight: bold;
  text-align: right;
  margin-bottom: 5px;
}

.month-day-match {
  font-size: 0.75em;
  margin-bottom: 2px;
  padding: 2px 4px;
  background-color: #f8f9fa;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e9ecef;
}

.month-day-match:hover {
  background-color: #e9ecef;
}

.month-day-match.match-local {
  border-left: 3px solid #2B2B2B;
}

.month-day-match.match-visitor {
  border-left: 3px solid #6c757d;
}

/* Mobile Header Optimization */
@media (max-width: 576px) {
  .logo {
    width: 150px !important;
    height: 35px !important;
  }

  #userAvatar {
    width: 32px !important;
    height: 32px !important;
  }

  #userInfo {
    font-size: 0.9rem;
  }
}

/* ===== Basketball Court Visualization ===== */
.basketball-court {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* Aspect ratio based on standard half court or the image.
     Assuming the image is roughly square or slightly vertical.
     Let's use a standard ratio or auto height if possible, but for absolute positioning we need height.
     Let's assume a ratio of roughly 1:0.94 (500px width / 470px height from before).
     Or better, use aspect-ratio property. */
  aspect-ratio: 500 / 470;
  margin: 0 auto;
  background-color: #d2b48c;
  /* Try multiple paths to be safe */
  background-image: url('../img/cancha.webp');
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  overflow: hidden;
}

/* Player Jersey on Court */
.player-jersey {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 60px;
  /* Smaller width */
  z-index: 10;
  transition: all 0.3s ease;
}

.jersey-svg {
  width: 60px;
  /* Smaller jersey */
  height: 60px;
  filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.3));
}

.player-info {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.7rem;
  /* Smaller font */
  margin-top: -10px;
  white-space: nowrap;
}

.player-stat {
  font-weight: bold;
  color: #ffc107;
  font-size: 0.8rem;
  /* Smaller font */
  text-shadow: 1px 1px 1px #000;
}

/* Positions (2-2-1 Defensive Distribution around hoop) */
/* Basket is at TOP (approx 5-10%) */

/* Row 1: Closest to basket (Low Post) */
.pos-1 {
  top: 20%;
  left: 30%;
}

.pos-2 {
  top: 20%;
  left: 70%;
}

/* Row 2: Middle (Elbows/Wings) */
.pos-3 {
  top: 45%;
  left: 20%;
}

.pos-4 {
  top: 45%;
  left: 80%;
}

/* Row 3: Furthest (Top of Key) */
.pos-5 {
  top: 70%;
  left: 50%;
}

/* Sticky Footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}

/* Custom Utilities for Landing Page */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur {
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.transform-hover {
  transition: transform 0.3s ease;
}

.transform-hover:hover {
  transform: scale(1.02) rotate(0deg) !important;
}

.min-vh-75 {
  min-height: 75vh;
}

.opacity-90 {
  opacity: 0.9;
}

.bg-black {
  background-color: #000 !important;
}

/* Accessibility: Touch Targets */
footer ul.list-unstyled li {
  margin-bottom: 0.8rem;
}

footer ul.list-unstyled li a {
  display: inline-block;
  padding: 8px 0;
  /* Increase hit area */
}

footer .d-flex.gap-3 {
  gap: 1.5rem !important;
  /* Increase gap between social icons */
}

footer .d-flex.gap-3 a {
  display: inline-flex;
  padding: 10px;
  /* Increase hit area for icons */
  margin: -10px;
  /* Negative margin to maintain visual position but increase hit area */
}