/* css/programacion.css */

/* ===== VARIABLES DE COLORES POR MODALIDAD ===== */
:root {
	--futbol-masc: #2563eb;
	--futbol-fem: #dc2626;
	--volley-masc: #059669;
	--volley-fem: #7c3aed;
	--handball: #ea580c;
	--basquet-masc: #0891b2;
	--basquet-fem: #be185d;
	--ajedrez: #374151;
	--voces: #7c2d12;
	--robotica: #065f46;
}

/* ===== LAYOUT PRINCIPAL ===== */
.page-title {
	color: #1f2937;
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 2rem;
	text-align: center;
}

/* ===== FILTROS ===== */
.filtros-section {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	margin-bottom: 2rem;
	overflow: hidden;
}

.filtros-toggle {
	width: 100%;
	background: none;
	border: none;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.filtros-toggle:hover {
	background: #f3f4f6;
}

.filtros-icon {
	transition: transform 0.2s ease;
}

.filtros-toggle.expanded .filtros-icon {
	transform: rotate(180deg);
}

.filtros-content {
	padding: 0 1.5rem 1.5rem;
	transition: all 0.3s ease;
	max-height: 500px;
	opacity: 1;
}

.filtros-content.collapsed {
	max-height: 0;
	opacity: 0;
	padding: 0 1.5rem;
	overflow: hidden;
}

.filtros-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.filtro-item label {
	display: block;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.5rem;
}

.filtro-item select,
.filtro-item input[type="text"],
.filtro-item input[type="date"] {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.875rem;
	transition: border-color 0.2s ease;
}

.filtro-item select:focus,
.filtro-item input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-aplicar-filtros {
	background: #2563eb;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
	width: 100%;
}

.btn-aplicar-filtros:hover {
	background: #1d4ed8;
}

/* ===== LOADING ===== */
.loading-container {
	text-align: center;
	padding: 3rem 0;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e5e7eb;
	border-top: 4px solid #2563eb;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* ===== CONTADOR ===== */
.contador-partidos {
	text-align: center;
	margin-bottom: 1.5rem;
	color: #6b7280;
	font-weight: 500;
}

/* ===== GRID DE PARTIDOS ===== */
.partidos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.partido-card {
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.partido-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Borde de color por modalidad */
.partido-card.futbol-masc {
	border-left: 4px solid var(--futbol-masc);
}

.partido-card.futbol-fem {
	border-left: 4px solid var(--futbol-fem);
}

.partido-card.volley-masc {
	border-left: 4px solid var(--volley-masc);
}

.partido-card.volley-fem {
	border-left: 4px solid var(--volley-fem);
}

.partido-card.handball {
	border-left: 4px solid var(--handball);
}

.partido-card.basquet-masc {
	border-left: 4px solid var(--basquet-masc);
}

.partido-card.basquet-fem {
	border-left: 4px solid var(--basquet-fem);
}

.modalidad-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.5rem;
}

.modalidad-nombre {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.lugar-info {
	font-size: 0.75rem;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-bottom: 1rem;
}

.equipos {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.75rem;
	text-align: center;
}

.fecha-info {
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
	margin-bottom: 1rem;
}

.estado-resultado {
	text-align: center;
	padding: 0.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.875rem;
}

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

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

.estado-finalizado {
	background: #f3f4f6;
	color: #374151;
}

.resultado-score {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.detalle-sets {
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 400;
	margin-bottom: 0.25rem;
	font-family: 'Courier New', monospace;
}

.resultado-ganador {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== NO HAY PARTIDOS ===== */
.no-partidos {
	text-align: center;
	padding: 3rem 0;
	color: #6b7280;
	font-size: 1.125rem;
}

/* ===== CARGAR MÁS ===== */
.cargar-mas-container {
	text-align: center;
	padding: 2rem 0;
}

.btn-cargar-mas {
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	color: #374151;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-cargar-mas:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.partidos-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.filtros-grid {
		grid-template-columns: 1fr;
	}

	.page-title {
		font-size: 1.5rem;
	}

	.partido-card {
		padding: 1rem;
	}
}