/**
 * KILL STATISTICS MODERN CSS
 * Death Statistics Page - 2025
 */

/* Container */
.killstats-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Header */
.killstats-header {
	text-align: center;
	margin-bottom: 30px;
	padding: 40px 20px;
	background: linear-gradient(135deg, #1a0f0f 0%, #0f0a0a 100%);
	border: 2px solid #442222;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.killstats-header::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #cc3333, #ff4444, #cc3333);
	border-radius: 12px;
	opacity: 0.15;
	z-index: 0;
	animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.25; }
}

.killstats-title {
	font-size: 36px;
	font-weight: 700;
	color: #ff6666;
	margin: 0 0 10px 0;
	position: relative;
	z-index: 1;
	text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.killstats-title-icon {
	display: inline-block;
	font-size: 40px;
	margin-right: 10px;
	animation: skull 2s ease-in-out infinite;
}

@keyframes skull {
	0%, 100% { transform: rotate(-5deg); }
	50% { transform: rotate(5deg); }
}

.killstats-subtitle {
	font-size: 16px;
	color: #8899aa;
	margin: 0;
	position: relative;
	z-index: 1;
}

/* Stats Summary */
.killstats-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.killstats-summary-card {
	background: linear-gradient(135deg, #0f141a 0%, #1a2332 100%);
	border: 2px solid #2a3342;
	border-radius: 12px;
	padding: 25px;
	text-align: center;
	transition: all 0.3s ease;
}

.killstats-summary-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
	border-color: #ff4444;
}

.killstats-summary-icon {
	font-size: 48px;
	margin-bottom: 15px;
	display: block;
}

.killstats-summary-value {
	font-size: 36px;
	font-weight: 700;
	color: #ff6666;
	margin: 0 0 5px 0;
}

.killstats-summary-label {
	font-size: 14px;
	color: #8899aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Deaths Table */
.killstats-table-section {
	background: linear-gradient(135deg, #0f141a 0%, #1a2332 100%);
	border: 2px solid #2a3342;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 25px;
}

.killstats-table-header {
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 2px solid #2a3342;
}

.killstats-table-title {
	font-size: 20px;
	font-weight: 700;
	color: #ff6666;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.killstats-table-title-icon {
	font-size: 24px;
}

.killstats-table-container {
	overflow-x: auto;
}

.killstats-table {
	width: 100%;
	border-collapse: collapse;
	background: #0a0f14;
	border-radius: 8px;
	overflow: hidden;
}

.killstats-table thead {
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
}

.killstats-table th {
	padding: 10px 12px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: #8899aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #2a3342;
}

.killstats-table th.center {
	text-align: center;
}

.killstats-table td {
	padding: 4px 8px;
	color: #8899aa;
	border-bottom: 1px solid #1a2332;
	font-size: 12px;
	line-height: 1.6;
}

.killstats-table td.center {
	text-align: center;
}

.killstats-table tbody tr {
	transition: all 0.3s ease;
}

.killstats-table tbody tr:hover {
	background: rgba(0, 0, 0, 0.2);
}

.killstats-table tbody tr:last-child td {
	border-bottom: none;
}

/* Death Number */
.killstats-number {
	display: inline-block;
	width: 24px;
	height: 24px;
	background: #2a3342;
	border-radius: 50%;
	color: #8899aa;
	font-weight: 600;
	font-size: 11px;
	line-height: 24px;
	text-align: center;
}

/* Date Badge */
.killstats-date {
	display: inline-block;
	font-size: 12px;
	color: #667788;
}

/* Player Name Link */
.killstats-player-name {
	color: #00ffaa;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.killstats-player-name:hover {
	color: #00ccff;
}

/* Level Badge */
.killstats-level {
	display: inline;
	color: #8899aa;
	font-weight: normal;
}

/* Death Description */
.killstats-description {
	color: #8899aa;
	line-height: 1.8;
	font-size: 12px;
}

.killstats-description strong {
	color: #8899aa;
	font-weight: normal;
}

/* Killer Link */
.killstats-killer {
	color: #ff6666;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.killstats-killer:hover {
	color: #ff8888;
}

/* Monster Name */
.killstats-monster {
	color: #8899aa;
	font-weight: normal;
}

/* World Badge */
.killstats-world {
	display: inline-block;
	font-size: 12px;
	color: #667788;
}

/* Empty State */
.killstats-empty {
	text-align: center;
	padding: 60px 20px;
	background: linear-gradient(135deg, #0f141a 0%, #1a2332 100%);
	border: 2px solid #2a3342;
	border-radius: 12px;
}

.killstats-empty-icon {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.3;
}

.killstats-empty-title {
	font-size: 24px;
	font-weight: 600;
	color: #8899aa;
	margin: 0 0 10px 0;
}

.killstats-empty-text {
	font-size: 16px;
	color: #667788;
	margin: 0;
}

/* Death Type Indicators */
.killstats-death-type {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 5px;
}

.killstats-death-type-killed {
	background: rgba(255, 68, 68, 0.2);
	color: #ff6666;
	border: 1px solid rgba(255, 68, 68, 0.3);
}

.killstats-death-type-slain {
	background: rgba(255, 136, 0, 0.2);
	color: #ff8800;
	border: 1px solid rgba(255, 136, 0, 0.3);
}

.killstats-death-type-crushed {
	background: rgba(204, 51, 51, 0.2);
	color: #cc3333;
	border: 1px solid rgba(204, 51, 51, 0.3);
}

.killstats-death-type-eliminated {
	background: rgba(153, 0, 0, 0.2);
	color: #ff3333;
	border: 1px solid rgba(153, 0, 0, 0.3);
}

.killstats-death-type-annihilated {
	background: rgba(102, 0, 0, 0.2);
	color: #ff0000;
	border: 1px solid rgba(102, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
	.killstats-container {
		padding: 15px;
	}

	.killstats-header {
		padding: 30px 15px;
	}

	.killstats-title {
		font-size: 28px;
	}

	.killstats-title-icon {
		font-size: 32px;
	}

	.killstats-summary {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.killstats-table-section {
		padding: 15px;
	}

	.killstats-table {
		font-size: 12px;
	}

	.killstats-table th,
	.killstats-table td {
		padding: 10px 8px;
	}

	.killstats-description {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.killstats-title {
		font-size: 24px;
	}

	.killstats-table {
		font-size: 12px;
	}

	.killstats-table th,
	.killstats-table td {
		padding: 8px 6px;
	}
}
