/* ====================================
   CHARACTERS PAGE - MODERN DESIGN V1
   Account Management Style
   ==================================== */

/* CSS Variables */
:root {
	--primary-bg: #0f141a;
	--secondary-bg: #1a2332;
	--border-color: #2a3440;
	--accent-cyan: #00ffaa;
	--text-light: #e6f8ff;
	--text-muted: #a8b3c2;
	--success-green: #7AF972;
	--error-red: #ff4444;
	--warning-yellow: #F9F572;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
	--transition-fast: 0.2s ease;
	--transition-normal: 0.3s ease;
}

/* ====================================
   CONTAINER
   ==================================== */

.characters-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ====================================
   HEADER
   ==================================== */

.characters-header {
	text-align: center;
	margin-bottom: 32px;
}

.characters-logo {
	font-size: 64px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

.characters-title {
	font-size: 42px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0 0 12px 0;
	background: linear-gradient(135deg, var(--accent-cyan), #00d4ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.characters-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   SEARCH BOX
   ==================================== */

.search-section {
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 32px;
	box-shadow: var(--shadow-md);
}

.search-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.search-icon {
	font-size: 24px;
}

.search-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0;
}

.search-form {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.search-input {
	flex: 1;
	min-width: 250px;
	padding: 14px 20px;
	background: rgba(15, 20, 26, 0.6);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-light);
	font-size: 15px;
	transition: all var(--transition-normal);
}

.search-input:focus {
	outline: none;
	border-color: var(--accent-cyan);
	box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1);
}

.search-input::placeholder {
	color: var(--text-muted);
}

.search-button {
	padding: 14px 32px;
	background: linear-gradient(135deg, var(--accent-cyan), #00d4ff);
	border: none;
	border-radius: 8px;
	color: var(--primary-bg);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

.search-button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* ====================================
   CHARACTER INFO SECTION
   ==================================== */

.char-info-section {
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-md);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--border-color);
}

.section-icon {
	font-size: 28px;
}

.section-header h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0;
}

.info-grid {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 12px 24px;
}

.info-label {
	font-weight: 600;
	color: var(--text-muted);
	font-size: 14px;
}

.info-value {
	color: var(--text-light);
	font-size: 15px;
}

.info-value a {
	color: var(--accent-cyan);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition-fast);
}

.info-value a:hover {
	color: #00d4ff;
	text-decoration: underline;
}

.status-online {
	color: #00ff00 !important; /* Verde */
	font-weight: 700;
}

.status-offline {
	color: #ff0000 !important; /* Vermelho */
	font-weight: 700;
}

.status-deleted {
	color: var(--error-red);
	font-weight: 700;
	margin-left: 8px;
}

.flag-icon {
	vertical-align: middle;
	margin-right: 8px;
}

/* ====================================
   CHARACTER LIST (Account Characters)
   ==================================== */

.char-list-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.char-list-table thead {
	background: rgba(15, 20, 26, 0.6);
}


.char-list-table th {
	padding: 12px;
	text-align: left;
	font-weight: 700;
	color: var(--accent-cyan);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
}

/* Centraliza a coluna Status */
.char-list-table th:nth-child(3),
.char-list-table td:nth-child(3) {
	text-align: center;
}

.char-list-table td {
	padding: 12px;
	color: var(--text-light);
	font-size: 14px;
	border-bottom: 1px solid rgba(42, 52, 64, 0.3);
}

.char-list-table tbody tr:hover {
	background: rgba(0, 255, 170, 0.03);
}

.char-list-table .char-name {
	font-weight: 600;
	color: var(--text-light);
}

.view-button {
	padding: 6px 16px;
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
	border: 1px solid rgba(0, 255, 170, 0.3);
	border-radius: 6px;
	color: var(--accent-cyan);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	display: inline-block;
	transition: all var(--transition-normal);
}

.view-button:hover {
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
	transform: translateY(-2px);
}

/* ====================================
   DEATHS & FRAGS TABLES
   ==================================== */

.deaths-table,
.frags-table,
.vip-table,
.quest-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.deaths-table td,
.frags-table td,
.vip-table td,
.quest-table td {
	padding: 12px 6px;
	color: var(--text-light);
	font-size: 12px;
	border-bottom: 1px solid rgba(42, 52, 64, 0.3);
	line-height: 1;
}

.deaths-table tbody tr:hover,
.frags-table tbody tr:hover,
.vip-table tbody tr:hover {
	background: rgba(0, 255, 170, 0.03);
}

.date-column {
	width: 20%;
	text-align: center;
	color: var(--text-muted);
	font-size: 13px;
}

.frag-justified {
	color: var(--success-green);
	font-size: 12px;
}

.frag-unjustified {
	color: var(--error-red);
	font-size: 12px;
}

/* ====================================
   QUEST TABLE
   ==================================== */

.quest-progress {
	margin-bottom: 16px;
	padding: 16px;
	background: rgba(15, 20, 26, 0.4);
	border-radius: 8px;
}

.quest-progress-label {
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 8px;
	display: block;
}

.quest-progress-bar {
	width: 100%;
	height: 8px;
	background: rgba(42, 52, 64, 0.5);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.quest-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--success-green), var(--accent-cyan));
	transition: width 0.3s ease;
}

.quest-table td {
	padding: 10px 12px;
}

.quest-table .quest-name {
	width: 85%;
}

.quest-table .quest-status {
	width: 15%;
	text-align: center;
}

.quest-icon {
	font-size: 18px;
}

/* ====================================
   ERROR BOX
   ==================================== */

.error-box {
	background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
	border: 1px solid rgba(255, 68, 68, 0.3);
	border-left: 4px solid var(--error-red);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.error-icon {
	font-size: 32px;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.error-content h3 {
	font-size: 18px;
	color: var(--error-red);
	margin: 0 0 12px 0;
}

.error-content ul {
	margin: 0;
	padding-left: 20px;
	list-style: none;
}

.error-content li {
	color: var(--text-light);
	margin-bottom: 8px;
	position: relative;
}

.error-content li::before {
	content: '▸';
	position: absolute;
	left: -20px;
	color: var(--error-red);
}

/* ====================================
   COMMENT BOX
   ==================================== */

.comment-box {
	background: rgba(15, 20, 26, 0.4);
	border: 1px solid var(--border-color);
	border-left: 3px solid var(--accent-cyan);
	border-radius: 8px;
	padding: 16px;
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

.fade-in-scale {
	animation: fadeInScale 0.5s ease-out;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1024px) {
	.characters-container {
		padding: 32px 16px;
	}
	
	.characters-title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.characters-container {
		padding: 24px 16px;
	}
	
	.characters-title {
		font-size: 32px;
	}
	
	.characters-logo {
		font-size: 48px;
	}
	
	.info-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	
	.info-label {
		font-weight: 700;
		color: var(--accent-cyan);
		margin-bottom: 4px;
	}
	
	.search-form {
		flex-direction: column;
	}
	
	.search-input,
	.search-button {
		width: 100%;
	}
	
	.char-info-section {
		padding: 24px;
	}
	
	.char-list-table {
		font-size: 13px;
	}
	
	.char-list-table th,
	.char-list-table td {
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.characters-container {
		padding: 20px 12px;
	}
	
	.characters-title {
		font-size: 28px;
	}
	
	.char-info-section {
		padding: 20px;
	}
	
	.section-header h2 {
		font-size: 22px;
	}
	
	.char-list-table {
		display: block;
		overflow-x: auto;
	}
	
	.error-box {
		flex-direction: column;
		text-align: center;
	}
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ====================================
   COLLAPSIBLE SECTIONS
   ==================================== */

.collapsible {
	cursor: pointer;
	transition: color var(--transition-fast);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.collapsible:hover {
	color: var(--accent-cyan);
}

.toggle-icon {
	font-size: 18px;
	transition: transform var(--transition-fast);
	margin-left: auto;
}

.collapsible.active .toggle-icon {
	transform: rotate(180deg);
}

.collapsible-content {
	display: none;
	padding-top: 16px;
}

.collapsible.active + .collapsible-content {
	display: block;
}
