/*!
 =========================================================
 * AtlansLostLegacy - Rankings Styles
 * Sistema mejorado de estilos para rankings
 =========================================================
 
 * Estilos adicionales y específicos para el módulo de rankings
 * Basado en el diseño moderno del template Landing
 * Adaptado a la paleta de colores de AtlansLostLegacy
 
 =========================================================
*/

/* ============================================================================
   PÁGINA DE RANKINGS - Contenedor principal
   ============================================================================ */

.rankings-page-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px;
}

/* Título de página con estilo mejorado */
.rankings-page-title {
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 2px solid rgba(12, 65, 186, 0.3);
}

.rankings-page-title span {
	font-family: 'PT Sans', sans-serif;
	font-size: 32px;
	color: var(--accent-primary);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-shadow: 0 0 10px rgba(12, 65, 186, 0.5);
}

.rankings-page-title i {
	color: var(--accent-secondary);
	margin-right: 10px;
	text-shadow: 0 0 5px rgba(215, 165, 86, 0.3);
}

/* ============================================================================
   ESTILOS ESPECÍFICOS PARA CADA POSICIÓN
   ============================================================================ */

/* Estilos para las primeras 3 posiciones con colores especiales */
.rankings-table tbody tr:nth-child(1),
table[id^="Ranking"] tbody tr:nth-child(1) {
	background: linear-gradient(90deg, rgba(95, 231, 255, 0.05), transparent);
	border-left: 3px solid #5FE7FF;
}

.rankings-table tbody tr:nth-child(2),
table[id^="Ranking"] tbody tr:nth-child(2) {
	background: linear-gradient(90deg, rgba(0, 183, 255, 0.05), transparent);
	border-left: 3px solid #00B7FF;
}

.rankings-table tbody tr:nth-child(3),
table[id^="Ranking"] tbody tr:nth-child(3) {
	background: linear-gradient(90deg, rgba(0, 107, 255, 0.05), transparent);
	border-left: 3px solid #006BFF;
}

/* ============================================================================
   BADGES Y MEDALLAS
   ============================================================================ */

.ranking-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 5px;
}

.ranking-badge--top1 {
	background: linear-gradient(135deg, #5FE7FF, #00B7FF);
	color: var(--bg-primary);
	box-shadow: 0 0 10px rgba(95, 231, 255, 0.5);
}

.ranking-badge--top2 {
	background: linear-gradient(135deg, #00B7FF, #006BFF);
	color: var(--text-highlight);
	box-shadow: 0 0 10px rgba(0, 183, 255, 0.5);
}

.ranking-badge--top3 {
	background: linear-gradient(135deg, #006BFF, #0C41BA);
	color: var(--text-highlight);
	box-shadow: 0 0 10px rgba(0, 107, 255, 0.5);
}

/* ============================================================================
   ESTADÍSTICAS EN TABLA
   ============================================================================ */

.ranking-stat {
	font-family: 'PT Sans', sans-serif;
	font-weight: 600;
	color: var(--text-primary);
}

.ranking-stat--primary {
	color: var(--accent-primary);
	font-weight: bold;
	text-shadow: 0 0 5px rgba(12, 65, 186, 0.3);
}

.ranking-stat--secondary {
	color: var(--accent-secondary);
	font-weight: bold;
	text-shadow: 0 0 5px rgba(215, 165, 86, 0.3);
}

/* ============================================================================
   INFORMACIÓN ADICIONAL (Level, Resets, etc)
   ============================================================================ */

.ranking-info-row {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
}

.ranking-info-label {
	color: var(--text-muted);
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.5px;
}

.ranking-info-value {
	color: var(--text-primary);
	font-weight: bold;
}

/* ============================================================================
   RESPONSIVIDAD PARA MÓVILES
   ============================================================================ */

@media screen and (max-width: 768px) {
	.rankings-table,
	.general-rank,
	table[id^="Ranking"] {
		font-size: 14px;
	}
	
	.rankings-table thead th,
	.general-rank thead th,
	table[id^="Ranking"] thead th {
		font-size: 11px;
		padding: 10px 8px;
	}
	
	.rankings-table tr td,
	.general-rank td,
	table[id^="Ranking"] td {
		padding: 8px;
		font-size: 14px;
	}
	
	.rankings-class-image,
	.general-rank .rankings-class-image,
	table[id^="Ranking"] .rankings-class-image {
		width: 28px !important;
		height: 28px !important;
	}
	
	.rankings_menu a {
		width: 120px;
		font-size: 11px;
		padding: 6px 8px;
	}
	
	.rankings-class-filter-selection {
		width: 65px;
	}
	
	.rankings-class-filter-selection img {
		width: 35px;
		height: 35px;
	}
}

/* ============================================================================
   PAGINACIÓN DE RANKINGS
   ============================================================================ */

.rankings-pagination {
	text-align: center;
	margin: 30px 0;
	padding: 20px 0;
	border-top: 1px solid var(--border-primary);
}

.rankings-pagination a,
.rankings-pagination span {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 3px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 3px;
	color: var(--text-primary);
	transition: all 0.3s ease;
}

.rankings-pagination a:hover {
	background: rgba(12, 65, 186, 0.1);
	border-color: var(--accent-primary);
	color: var(--accent-primary);
	box-shadow: var(--shadow-glow-blue);
}

.rankings-pagination .current {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: var(--text-highlight);
	box-shadow: var(--shadow-glow-blue);
}

/* ============================================================================
   SEARCH Y FILTROS
   ============================================================================ */

.rankings-search-container {
	text-align: center;
	margin: 20px 0;
}

.rankings-search-input {
	width: 300px;
	padding: 10px 15px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 5px;
	color: var(--text-primary);
	font-size: 14px;
	transition: all 0.3s ease;
}

.rankings-search-input:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 10px rgba(12, 65, 186, 0.3);
}

.rankings-search-input::placeholder {
	color: var(--text-muted);
	font-style: italic;
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.rankings-loading {
	text-align: center;
	padding: 50px;
	color: var(--text-secondary);
	font-size: 18px;
}

.rankings-loading::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.rankings-empty {
	text-align: center;
	padding: 50px;
	color: var(--text-muted);
	font-style: italic;
}

.rankings-empty i {
	font-size: 48px;
	color: var(--border-primary);
	margin-bottom: 15px;
	display: block;
}

/* ============================================================================
   TOOLTIPS PARA RANKINGS
   ============================================================================ */

.ranking-tooltip {
	position: relative;
	cursor: help;
}

.ranking-tooltip:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 8px 12px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 5px;
	white-space: nowrap;
	font-size: 12px;
	color: var(--text-primary);
	z-index: 1000;
	box-shadow: var(--shadow-md);
	margin-bottom: 5px;
}

/* ============================================================================
   ANIMACIONES SUTILES
   ============================================================================ */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rankings-table tbody tr,
.general-rank tbody tr,
table[id^="Ranking"] tbody tr {
	animation: fadeIn 0.3s ease forwards;
}

.rankings-table tbody tr:nth-child(1),
table[id^="Ranking"] tbody tr:nth-child(1) { animation-delay: 0s; }

.rankings-table tbody tr:nth-child(2),
table[id^="Ranking"] tbody tr:nth-child(2) { animation-delay: 0.05s; }

.rankings-table tbody tr:nth-child(3),
table[id^="Ranking"] tbody tr:nth-child(3) { animation-delay: 0.1s; }
