/* Header compartido - Diseño Clean y Profesional para resultados y tiradas */

/* Header limpio */
.tournament-header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sponsors-left,
.sponsors-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  flex-basis: 200px; /* Ancho fijo para mantener equilibrio */
}

.sponsors-left {
  justify-content: flex-end; /* Alinear hacia el centro */
}

.sponsors-right {
  justify-content: flex-start; /* Alinear hacia el centro */
}

.title-section {
  text-align: center;
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sponsors-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sponsor-img {
  height: 60px;
  width: auto;
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.tournament-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
  text-align: center;
}

.tournament-details {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
  text-align: center;
}

/* Navegación profesional */
.navigation-container {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #6b7280;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(5 150 105 / 0.3);
  border: none;
}

.btn-live:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgb(5 150 105 / 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-live .spinner-grow {
  width: 0.9rem;
  height: 0.9rem;
}

/* Botón Premio */
.btn-prize {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(217 119 6 / 0.3);
  border: none;
  cursor: pointer;
}

.btn-prize:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgb(217 119 6 / 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-prize i {
  font-size: 1rem;
}

/* Botón Orden de Tiro */
.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(37 99 235 / 0.3);
  border: none;
  cursor: pointer;
}

.btn-order:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgb(37 99 235 / 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-order i {
  font-size: 1rem;
}

/* Estilos para el modal del orden de tiro */
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-table th {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.order-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.order-table tbody tr:hover {
  background-color: #f8fafc;
}

.order-table tbody tr:last-child td {
  border-bottom: none;
}

.cancha-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cancha-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.badge-estado {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.estado-pendiente {
  background-color: #fef3c7;
  color: #92400e;
}

.estado-en_curso {
  background-color: #dcfce7;
  color: #166534;
}

.estado-finalizada {
  background-color: #dbeafe;
  color: #1e40af;
}

.estado-en_revision {
  background-color: #fef2f2;
  color: #991b1b;
}

/* Estilos para el modal del premio */
.prize-container {
  position: relative;
}

.prize-img {
  max-width: 100%;
  max-height: 60vh;
  border: 3px solid #d97706;
  transition: transform 0.3s ease;
}

.prize-img:hover {
  transform: scale(1.02);
}

/* Estilos para pantalla completa */
.prize-img:fullscreen {
  object-fit: contain;
  width: 100vw;
  height: 100vh;
  background-color: black;
  border: none;
}

.prize-img:-webkit-full-screen {
  object-fit: contain;
  width: 100vw;
  height: 100vh;
  background-color: black;
  border: none;
}

.prize-img:-moz-full-screen {
  object-fit: contain;
  width: 100vw;
  height: 100vh;
  background-color: black;
  border: none;
}

.prize-description {
  color: var(--text-secondary);
}

/* Botón Orden de Tiro */
.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(37 99 235 / 0.3);
  border: none;
  cursor: pointer;
}

.btn-order:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgb(37 99 235 / 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-order i {
  font-size: 1rem;
}

/* Estilos para el modal de orden de tiro */
/* Estilos para el modal de orden de tiro */
.cancha-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.cancha-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Estilos específicos y mejorados para el modal de orden de tiro */
#modalOrdenTiro .order-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  table-layout: auto !important;
}

#modalOrdenTiro .order-table th {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  padding: 12px !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-shadow: none !important;
  border-right: 1px solid rgba(255,255,255,0.1) !important;
  border-bottom: none !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

#modalOrdenTiro .order-table td {
  padding: 10px 12px !important;
  text-align: center !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-right: none !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  color: #374151 !important;
  text-shadow: none !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  font-weight: normal !important;
}

#modalOrdenTiro .order-table tbody tr:hover {
  background-color: #f8fafc !important;
}

#modalOrdenTiro .order-table tbody tr:last-child td {
  border-bottom: none !important;
}

#modalOrdenTiro .cancha-card {
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#modalOrdenTiro .cancha-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  padding: 1rem !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
}

/* Resetear estilos específicos de otras tablas que pueden interferir */
#modalOrdenTiro table,
#modalOrdenTiro table th,
#modalOrdenTiro table td {
  background-color: initial !important;
  text-shadow: none !important;
  font-weight: initial !important;
}

#modalOrdenTiro table th {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
  font-weight: 600 !important;
}

#modalOrdenTiro table td {
  color: #374151 !important;
  background: transparent !important;
}

/* Asegurar que las celdas no tengan efectos de otras tablas */
#modalOrdenTiro .order-table tr td:not(:first-child):not(:last-child):not(:empty) {
  text-shadow: none !important;
  color: #374151 !important;
  background: transparent !important;
}

/* Badges de estado específicos para el modal */
#modalOrdenTiro .badge-estado {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
}

#modalOrdenTiro .estado-pendiente {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

#modalOrdenTiro .estado-en_curso,
#modalOrdenTiro .estado-en-curso {
  background-color: #dcfce7 !important;
  color: #166534 !important;
}

#modalOrdenTiro .estado-finalizada {
  background-color: #dbeafe !important;
  color: #1e40af !important;
}

#modalOrdenTiro .estado-en_revision,
#modalOrdenTiro .estado-en-revision {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
}

.order-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.order-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.order-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.order-table tbody tr:hover {
  background: #f8fafc;
}

.badge-estado {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.estado-pendiente {
  background: #fef3c7;
  color: #92400e;
}

.estado-en-curso {
  background: #dbeafe;
  color: #1e40af;
}

.estado-finalizada {
  background: #d1fae5;
  color: #047857;
}

.estado-en-revision {
  background: #fed7d7;
  color: #c53030;
}

/* Banner Memorial - Homenaje a tirador fallecido */
.memorial-banner {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-top: 3px solid #dc2626;
  border-bottom: 1px solid #9ca3af;
  padding: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.memorial-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.memorial-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.memorial-photo {
  position: relative;
  flex-shrink: 0;
}

.memorial-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(31, 41, 55, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: grayscale(20%);
}

.memorial-ribbon-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memorial-ribbon-large {
  width: 40px;
  height: 40px;
  opacity: 0.85;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
}

.memorial-ribbon-large:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6));
}

.memorial-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1f2937;
}

.memorial-message {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

.memorial-subtitle {
  font-size: 0.75rem;
  opacity: 0.75;
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Efectos hover para la foto clickeable */
.memorial-img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
  opacity: 0.9;
}

/* Modal Memorial */
.memorial-modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.memorial-modal-header {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  position: relative;
}

.memorial-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #b91c1c, #dc2626);
}

.memorial-modal-header .modal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.memorial-modal-body {
  padding: 2rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  text-align: center;
}

.memorial-img-large {
  width: 350px;
  height: 350px;
  border-radius: 15px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  filter: grayscale(10%);
}

.memorial-modal-text h6 {
  color: #1f2937;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.memorial-modal-text p {
  color: #6b7280;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive design para header */
@media (max-width: 768px) {
  .tournament-title { 
    font-size: 1.75rem; 
  }
  
  .nav-content { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .nav-tabs { 
    justify-content: center; 
  }
  
  /* Header responsive */
  .header-layout {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sponsors-left,
  .sponsors-right {
    justify-content: center;
  }
  
  .title-section {
    order: -1;
  }
  
  /* Memorial banner responsive */
  .memorial-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
  
  .memorial-img {
    width: 40px;
    height: 40px;
  }
  
  .memorial-ribbon-large {
    width: 32px;
    height: 32px;
  }
  
  .memorial-message {
    font-size: 0.8rem;
  }
  
  .memorial-subtitle {
    font-size: 0.7rem;
  }
  
  /* Modal memorial responsive */
  .memorial-modal-body {
    padding: 1.5rem 1rem;
  }
  
  .memorial-img-large {
    width: 280px;
    height: 280px;
  }
  
  .memorial-modal-text h6 {
    font-size: 1rem;
  }
  
  .memorial-modal-text p {
    font-size: 0.85rem;
  }
}
