/* ============================================================================
   Spyral Theme - Profile Module Styling
   World of Warcraft Inspired Design
   ============================================================================ */

/* Profile Container */
#profile-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: Arial, sans-serif;
	color: #c8d9e8;
}

.profile-spyral {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(102, 204, 255, 0.3);
	border-radius: 8px;
	overflow: hidden;
}

/* ============================================================================
   ERROR STATE
   ============================================================================ */

.profile-error {
	padding: 60px 40px;
	text-align: center;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 0, 0, 0.1));
	border-radius: 8px;
}

.error-header {
	margin-bottom: 20px;
}

.error-header h2 {
	color: #ff6666;
	text-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
	font-size: 28px;
	margin: 0;
}

.error-body p {
	color: #a0aeb8;
	font-size: 15px;
	margin: 10px 0 0 0;
}

/* ============================================================================
   PROFILE HEADER
   ============================================================================ */

.profile-wrapper {
	width: 100%;
}

.profile-header {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 30px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(102, 204, 255, 0.08));
	border-bottom: 2px solid rgba(102, 204, 255, 0.4);
	min-height: 160px;
	position: relative;
	overflow: hidden;
}

.profile-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent 45%, rgba(246, 200, 92, 0.05) 50%, transparent 55%);
	pointer-events: none;
}

.header-avatar {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.avatar-frame {
	position: relative;
	width: 140px;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
	border: 3px solid #66ccff;
	box-shadow: 0 0 25px rgba(102, 204, 255, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.5);
	background: rgba(0, 0, 0, 0.3);
}

.profile-pic {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avatar-glow {
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: 8px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent);
	pointer-events: none;
}

.header-info {
	flex: 1;
	position: relative;
	z-index: 1;
}

.profile-username {
	margin: 0 0 15px 0;
	font-size: 36px;
	font-weight: bold;
	color: #66ccff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 12px rgba(102, 204, 255, 0.5);
	letter-spacing: 1px;
}

.user-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.user-ranks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rank-badge {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	background: rgba(0, 0, 0, 0.3);
	color: #f6c85c;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	transition: all 0.3s;
}

.rank-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================================
   PROFILE CONTENT LAYOUT
   ============================================================================ */

.profile-content {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.2);
}

/* Single-column (overview-only) layout */
.profile-content.profile-content--single {
	display: flex;
	justify-content: center;
}

.profile-main.profile-main--centered {
	width: 100%;
	max-width: 820px;
}

.profile-characters {
	margin-top: 20px;
}

/* ============================================================================
   SIDEBAR NAVIGATION
   ============================================================================ */

.profile-sidebar {
	display: flex;
	flex-direction: column;
}

.nav-section {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(102, 204, 255, 0.3);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 0 15px rgba(102, 204, 255, 0.2);
}

.nav-title {
	padding: 12px 15px;
	background: linear-gradient(90deg, rgba(102, 204, 255, 0.2), rgba(0, 0, 0, 0.3));
	color: #f6c85c;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid rgba(102, 204, 255, 0.3);
}

.nav-list {
	display: flex;
	flex-direction: column;
}

.nav-item {
	padding: 12px 15px;
	color: #c8d9e8;
	text-decoration: none;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-left: 3px solid transparent;
	transition: all 0.3s;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
	background: rgba(102, 204, 255, 0.1);
	border-left-color: rgba(102, 204, 255, 0.4);
	padding-left: 18px;
}

.nav-item.active {
	background: rgba(102, 204, 255, 0.15);
	border-left-color: rgba(102, 204, 255, 0.8);
	color: #66ccff;
	font-weight: 600;
	padding-left: 18px;
	box-shadow: inset 3px 0 8px rgba(102, 204, 255, 0.2);
}

.nav-item .icon {
	font-size: 10px;
	color: #f6c85c;
	display: inline-block;
	width: 8px;
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

.profile-main {
	display: flex;
	flex-direction: column;
}

.tab-panel {
	display: none;
	animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================================
   SECTION STYLING
   ============================================================================ */

.section-header {
	padding: 15px 20px;
	background: linear-gradient(90deg, rgba(102, 204, 255, 0.2), rgba(0, 0, 0, 0.3));
	border-bottom: 2px solid rgba(102, 204, 255, 0.4);
	color: #f6c85c;
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	margin-bottom: 15px;
	border-radius: 4px 4px 0 0;
}

.section-content {
	padding: 20px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(102, 204, 255, 0.2);
	border-top: none;
	border-radius: 0 0 4px 4px;
}

/* ============================================================================
   INFO GRID
   ============================================================================ */

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 15px;
}

.info-row {
	display: flex;
	flex-direction: column;
	padding: 15px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(102, 204, 255, 0.2);
	border-left: 3px solid rgba(102, 204, 255, 0.5);
	border-radius: 4px;
	transition: all 0.3s;
}

.info-row:hover {
	background: rgba(102, 204, 255, 0.1);
	border-left-color: rgba(102, 204, 255, 0.8);
	box-shadow: 0 0 12px rgba(102, 204, 255, 0.2);
	transform: translateY(-2px);
}

.info-label {
	color: #a0aeb8;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.info-value {
	color: #c8d9e8;
	font-size: 15px;
	font-weight: 600;
}

.info-badge {
	display: inline-block;
	padding: 4px 10px;
	background: rgba(102, 204, 255, 0.1);
	border: 1px solid rgba(102, 204, 255, 0.3);
	border-radius: 3px;
	margin-right: 6px;
	font-size: 12px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ============================================================================
   REALM SECTION (CHARACTERS)
   ============================================================================ */

.realm-section {
	margin-bottom: 25px;
}

.realm-header {
	padding: 12px 16px;
	background: linear-gradient(90deg, rgba(246, 200, 92, 0.15), rgba(0, 0, 0, 0.3));
	border-left: 4px solid rgba(246, 200, 92, 0.6);
	color: #f6c85c;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 12px;
	border-radius: 4px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.character-list {
	display: grid;
	gap: 12px;
}

.character-card {
	padding: 15px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(102, 204, 255, 0.05));
	border: 1px solid rgba(102, 204, 255, 0.2);
	border-radius: 6px;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.character-card:hover {
	background: linear-gradient(135deg, rgba(102, 204, 255, 0.1), rgba(0, 0, 0, 0.3));
	border-color: rgba(102, 204, 255, 0.4);
	box-shadow: 0 4px 16px rgba(102, 204, 255, 0.2);
	transform: translateY(-2px);
}

.char-row {
	display: flex;
	align-items: center;
	gap: 15px;
}

.char-race-class {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 4px;
	border: 1px solid rgba(102, 204, 255, 0.2);
}

.char-race-icon,
.char-class-icon {
	width: 28px;
	height: 28px;
	display: block;
}

.char-info {
	flex: 1;
}

.char-name {
	font-size: 16px;
	font-weight: bold;
	color: #66ccff;
	margin-bottom: 6px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.char-meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	font-size: 12px;
}

.char-level {
	color: #f6c85c;
	font-weight: bold;
	background: rgba(246, 200, 92, 0.15);
	padding: 2px 8px;
	border-radius: 3px;
}

.char-money {
	color: #c8d9e8;
	display: flex;
	align-items: center;
	gap: 4px;
}

.gold-icon {
	color: #f6c85c;
	font-weight: bold;
}

.char-action {
	flex-shrink: 0;
}

.view-btn {
	display: inline-block;
	padding: 8px 16px;
	background: linear-gradient(135deg, rgba(102, 204, 255, 0.2), rgba(102, 204, 255, 0.1));
	border: 1px solid rgba(102, 204, 255, 0.5);
	color: #66ccff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	transition: all 0.3s;
	cursor: pointer;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.view-btn:hover {
	background: linear-gradient(135deg, rgba(102, 204, 255, 0.4), rgba(102, 204, 255, 0.2));
	border-color: rgba(102, 204, 255, 0.8);
	box-shadow: 0 0 12px rgba(102, 204, 255, 0.4);
	transform: scale(1.05);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
	.profile-header {
		flex-direction: column;
		text-align: center;
		gap: 20px;
		padding: 25px;
	}

	.profile-username {
		font-size: 28px;
	}

	.user-ranks {
		justify-content: center;
	}

	.profile-content {
		grid-template-columns: 1fr;
	}

	.info-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	#profile-container {
		padding: 10px;
	}

	.profile-header {
		padding: 20px;
		gap: 15px;
		min-height: auto;
	}

	.avatar-frame {
		width: 100px;
		height: 100px;
	}

	.profile-username {
		font-size: 24px;
	}

	.profile-content {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 15px;
	}

	.profile-sidebar {
		flex-direction: row;
		gap: 10px;
		margin-bottom: 15px;
	}

	.nav-section {
		flex: 1;
	}

	.nav-item {
		padding: 10px 12px;
		font-size: 12px;
	}

	.section-header {
		padding: 12px 15px;
		font-size: 16px;
		margin-bottom: 10px;
	}

	.section-content {
		padding: 15px;
	}

	.info-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.char-row {
		flex-wrap: wrap;
		gap: 10px;
	}

	.char-info {
		flex-basis: 100%;
	}

	.char-action {
		width: 100%;
	}

	.view-btn {
		width: 100%;
		display: block;
		text-align: center;
	}

	.char-meta {
		gap: 10px;
	}
}

@media (max-width: 576px) {
	.profile-slider {
		display: flex;
		flex-direction: column;
	}

	.rank-badge {
		font-size: 11px;
		padding: 4px 10px;
	}

	.info-row {
		padding: 12px;
	}

	.info-label {
		font-size: 11px;
	}

	.info-value {
		font-size: 14px;
	}

	.realm-header {
		font-size: 13px;
		padding: 10px 12px;
	}

	.character-card {
		padding: 12px;
	}

	.char-name {
		font-size: 14px;
	}

	.char-meta {
		font-size: 11px;
	}
}
