/* ============================================================================
   WARS MODERN CSS - Guild Wars Page
   Design System: Account Management Style v1
   Pattern: Dark Theme + Cyan Accents + Gradient Cards
   ============================================================================ */

/* ===== BASE CONTAINER ===== */
.wars-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	min-height: 60vh;
}

/* ===== FADE IN ANIMATION ===== */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.fade-in-scale {
	animation: fadeInScale 0.4s ease-out;
}

/* ===== HEADER ===== */
.wars-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 40px 20px;
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
	border-radius: 16px;
	border: 2px solid #2a3440;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wars-logo {
	font-size: 80px;
	margin-bottom: 20px;
	filter: drop-shadow(0 4px 8px rgba(0, 255, 170, 0.3));
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}

.wars-title {
	font-size: 42px;
	font-weight: 700;
	color: #e6f8ff;
	margin: 0 0 15px 0;
	text-shadow: 0 2px 10px rgba(0, 255, 170, 0.3);
	letter-spacing: 1px;
}

.wars-subtitle {
	font-size: 18px;
	color: #a8b3c2;
	margin: 0;
	font-weight: 300;
}

/* ===== CARD BASE ===== */
.wars-card {
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
	border: 2px solid #2a3440;
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.wars-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
	border-color: #00ffaa;
}

/* ===== SECTION TITLE ===== */
.wars-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 700;
	color: #e6f8ff;
	margin: 40px 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #2a3440;
}

.wars-section-icon {
	font-size: 28px;
	filter: drop-shadow(0 2px 4px rgba(0, 255, 170, 0.3));
}

/* ===== COMMANDS SECTION ===== */
.wars-commands {
	display: grid;
	gap: 16px;
}

.war-command-item {
	background: #0f141a;
	border: 1px solid #2a3440;
	border-radius: 10px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.3s ease;
}

.war-command-item:hover {
	border-color: #00ffaa;
	background: #1a2332;
	transform: translateX(5px);
}

.command-code {
	font-family: 'Courier New', monospace;
	font-size: 15px;
	font-weight: 700;
	color: #00ffaa;
	background: #0a0f14;
	padding: 8px 12px;
	border-radius: 6px;
	border-left: 3px solid #00ffaa;
	display: inline-block;
}

.command-desc {
	font-size: 14px;
	color: #a8b3c2;
	font-weight: 500;
}

.command-example {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	color: #6b7785;
	font-style: italic;
	padding-left: 15px;
	border-left: 2px solid #2a3440;
}

/* ===== PROTECTION SYSTEM ===== */
.wars-protection-content {
	line-height: 1.7;
	color: #e6f8ff;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wars-protection-content p {
	margin-bottom: 18px;
	font-size: 16px;
	font-weight: 400;
	text-align: justify;
}

.wars-protection-content h4 {
	color: #00ffaa;
	font-size: 20px;
	font-weight: 700;
	margin: 30px 0 20px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 2px solid #00ffaa;
	padding-bottom: 8px;
}

.wars-protection-content ol {
	padding-left: 25px;
	margin-bottom: 20px;
}

.wars-protection-content li {
	margin-bottom: 12px;
	font-size: 15px;
	color: #a8b3c2;
	line-height: 1.6;
	font-weight: 500;
}

/* ===== WAR CARDS ===== */
.war-card {
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
	border: 2px solid #2a3440;
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.war-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #00ffaa, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.war-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
	border-color: #00ffaa;
}

.war-card:hover::before {
	opacity: 1;
}

/* War Status Colors */
.war-status-active {
	border-left: 4px solid #ff4444;
}

.war-status-active .war-status-badge {
	background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.war-status-pending {
	border-left: 4px solid #ffaa00;
}

.war-status-pending .war-status-badge {
	background: linear-gradient(135deg, #ffaa00 0%, #cc8800 100%);
}

.war-status-ending {
	border-left: 4px solid #00aaff;
}

.war-status-ending .war-status-badge {
	background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
}

.war-status-ended {
	border-left: 4px solid #666666;
}

.war-status-ended .war-status-badge {
	background: linear-gradient(135deg, #666666 0%, #444444 100%);
}

.war-status-rejected,
.war-status-canceled {
	border-left: 4px solid #888888;
	opacity: 0.7;
}

.war-status-rejected .war-status-badge,
.war-status-canceled .war-status-badge {
	background: linear-gradient(135deg, #888888 0%, #666666 100%);
}

/* ===== WAR HEADER (Guilds VS) ===== */
.war-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 30px;
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 2px solid #2a3440;
}

.war-guild {
	text-align: center;
}

.war-guild-left {
	justify-self: end;
}

.war-guild-right {
	justify-self: start;
}

.war-guild-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.war-guild-link:hover .war-guild-logo {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 8px 25px rgba(0, 255, 170, 0.4);
}

.war-guild-link:hover .war-guild-name {
	color: #00ffaa;
}

.war-guild-logo {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	border: 3px solid #2a3440;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	background: #0f141a;
}

.war-guild-name {
	font-size: 18px;
	font-weight: 700;
	color: #e6f8ff;
	transition: all 0.3s ease;
	max-width: 200px;
	word-wrap: break-word;
}

.war-vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.war-vs-icon {
	font-size: 36px;
	filter: drop-shadow(0 3px 8px rgba(255, 68, 68, 0.5));
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.war-vs-text {
	font-size: 20px;
	font-weight: 900;
	color: #ff4444;
	text-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
	letter-spacing: 3px;
}

/* ===== WAR STATUS BADGE ===== */
.war-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border-radius: 25px;
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 16px;
	color: white;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.war-status-icon {
	font-size: 22px;
}

.war-status-label {
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ===== WAR SCORE ===== */
.war-score {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin: 25px 0;
	padding: 20px;
	background: #0a0f14;
	border-radius: 12px;
	border: 2px solid #2a3440;
}

.score-left,
.score-right {
	font-size: 48px;
	font-weight: 900;
	min-width: 80px;
	text-align: center;
}

.score-left {
	color: #ff4444;
	text-shadow: 0 3px 10px rgba(255, 68, 68, 0.5);
}

.score-right {
	color: #00ffaa;
	text-shadow: 0 3px 10px rgba(0, 255, 170, 0.5);
}

.score-separator {
	font-size: 36px;
	font-weight: 700;
	color: #a8b3c2;
}

.war-score-final {
	opacity: 0.7;
}

/* ===== WAR INFO ===== */
.war-info {
	font-size: 15px;
	color: #a8b3c2;
	line-height: 1.8;
	text-align: center;
	padding: 20px;
	background: #0a0f14;
	border-radius: 10px;
	margin-bottom: 20px;
}

.war-info strong {
	color: #00ffaa;
	font-weight: 700;
}

.war-info em {
	color: #ffaa00;
	font-style: italic;
}

/* ===== DETAILS TOGGLE BUTTON ===== */
.war-details-toggle {
	text-align: center;
	margin-top: 20px;
}

.btn-details {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
	color: #0f141a;
	font-weight: 700;
	font-size: 15px;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.btn-details:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(0, 255, 170, 0.5);
	background: linear-gradient(135deg, #00ffcc 0%, #00dd99 100%);
}

.btn-details:active {
	transform: translateY(0px);
}

.btn-icon {
	font-size: 18px;
}

/* ===== WAR DETAILS (KILL HISTORY) ===== */
.war-details {
	margin-top: 25px;
	padding: 25px;
	background: #0a0f14;
	border-radius: 12px;
	border: 2px solid #2a3440;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.war-kills-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 500px;
	overflow-y: auto;
	padding: 10px;
}

.war-kills-list::-webkit-scrollbar {
	width: 8px;
}

.war-kills-list::-webkit-scrollbar-track {
	background: #1a2332;
	border-radius: 4px;
}

.war-kills-list::-webkit-scrollbar-thumb {
	background: #00ffaa;
	border-radius: 4px;
}

.kill-entry {
	padding: 12px 16px;
	background: #1a2332;
	border-radius: 8px;
	border-left: 3px solid transparent;
	font-size: 14px;
	color: #a8b3c2;
	line-height: 1.6;
	transition: all 0.3s ease;
}

.kill-entry:hover {
	background: #222f41;
	transform: translateX(5px);
}

.kill-left {
	border-left-color: #ff4444;
}

.kill-right {
	border-left-color: #00ffaa;
}

.kill-date {
	font-weight: 600;
	color: #6b7785;
	margin-right: 8px;
}

.kill-point {
	font-size: 16px;
	margin-right: 8px;
}

.kill-victim {
	font-weight: 700;
	color: #e6f8ff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.kill-victim:hover {
	color: #00ffaa;
}

.kill-killer {
	color: #00ffaa;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.kill-killer:hover {
	color: #00ffcc;
	text-decoration: underline;
}

/* ===== EMPTY STATES ===== */
.wars-empty,
.war-empty {
	text-align: center;
	padding: 60px 20px;
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
	border: 2px dashed #2a3440;
	border-radius: 16px;
	margin: 30px 0;
}

.wars-empty .empty-icon,
.war-empty .empty-icon {
	font-size: 80px;
	margin-bottom: 20px;
	opacity: 0.5;
	filter: grayscale(100%);
}

.empty-title {
	font-size: 28px;
	font-weight: 700;
	color: #a8b3c2;
	margin: 0 0 15px 0;
}

.empty-text {
	font-size: 16px;
	color: #6b7785;
	margin: 0;
	line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
	.wars-container {
		padding: 20px 15px;
	}
	
	.wars-title {
		font-size: 36px;
	}
	
	.war-header {
		gap: 20px;
	}
	
	.war-guild-logo {
		width: 70px;
		height: 70px;
	}
	
	.score-left,
	.score-right {
		font-size: 40px;
	}
}

@media (max-width: 768px) {
	.wars-logo {
		font-size: 60px;
	}
	
	.wars-title {
		font-size: 30px;
	}
	
	.wars-subtitle {
		font-size: 16px;
	}
	
	.war-header {
		grid-template-columns: 1fr;
		gap: 25px;
		text-align: center;
	}
	
	.war-guild-left,
	.war-guild-right {
		justify-self: center;
	}
	
	.war-guild-logo {
		width: 64px;
		height: 64px;
	}
	
	.war-guild-name {
		font-size: 16px;
	}
	
	.war-vs {
		order: 2;
	}
	
	.war-vs-icon {
		font-size: 32px;
	}
	
	.war-vs-text {
		font-size: 18px;
	}
	
	.score-left,
	.score-right {
		font-size: 36px;
	}
	
	.score-separator {
		font-size: 30px;
	}
	
	.wars-card {
		padding: 20px;
	}
	
	.war-info {
		font-size: 14px;
		padding: 15px;
	}
	
	.btn-details {
		padding: 10px 24px;
		font-size: 14px;
	}
	
	.kill-entry {
		font-size: 13px;
		padding: 10px 14px;
	}
}

@media (max-width: 480px) {
	.wars-header {
		padding: 30px 15px;
	}
	
	.wars-logo {
		font-size: 50px;
	}
	
	.wars-title {
		font-size: 24px;
	}
	
	.wars-subtitle {
		font-size: 14px;
	}
	
	.wars-section-title {
		font-size: 20px;
	}
	
	.command-code {
		font-size: 13px;
		padding: 6px 10px;
	}
	
	.command-desc {
		font-size: 13px;
	}
	
	.command-example {
		font-size: 12px;
	}
	
	.war-card {
		padding: 15px;
	}
	
	.score-left,
	.score-right {
		font-size: 32px;
		min-width: 60px;
	}
	
	.score-separator {
		font-size: 24px;
	}
	
	.btn-details {
		width: 100%;
		justify-content: center;
	}
}

/* ===== PRINT STYLES ===== */
@media print {
	.wars-container {
		max-width: 100%;
	}
	
	.war-details-toggle {
		display: none;
	}
	
	.war-details {
		display: block !important;
	}
	
	.war-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
}
