/* ====================================
   LOCATION 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;
	--card-hover: #1f2937;
	--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;
	
	/* Tier Colors */
	--tier-rook: #ffffff;
	--tier-first: #7AF972;
	--tier-second: #F9F572;
	--tier-third: #F97272;
	--tier-final: #8041bb;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.location-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ====================================
   HEADER
   ==================================== */

.location-header {
	text-align: center;
	margin-bottom: 32px;
}

.location-logo {
	font-size: 64px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

.location-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;
	text-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
}

.location-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   NAVIGATION TABS
   ==================================== */

.location-nav {
	display: flex;
	gap: 16px;
	margin-bottom: 40px;
	border-bottom: 2px solid var(--border-color);
	overflow-x: auto;
}

.nav-tab {
	padding: 12px 24px;
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 600;
	border-bottom: 3px solid transparent;
	transition: all var(--transition-fast);
	white-space: nowrap;
	font-size: 14px;
}

.nav-tab:hover {
	color: var(--text-light);
	border-bottom-color: rgba(0, 255, 170, 0.3);
}

.nav-tab.active {
	color: var(--accent-cyan);
	border-bottom-color: var(--accent-cyan);
}

/* ====================================
   TIER NAVIGATION CARDS
   ==================================== */

.tier-navigation {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.tier-nav-card {
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	text-decoration: none;
	color: var(--text-light);
	position: relative;
	overflow: hidden;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-md);
}

.tier-nav-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
	opacity: 0;
	transition: opacity var(--transition-normal);
}

.tier-nav-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.tier-nav-card:hover::before {
	opacity: 1;
}

/* Tier-specific border colors */
.tier-nav-card.rook:hover {
	border-color: var(--tier-rook);
	box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.tier-nav-card.first:hover {
	border-color: var(--tier-first);
	box-shadow: 0 12px 40px rgba(122, 249, 114, 0.3);
}

.tier-nav-card.second:hover {
	border-color: var(--tier-second);
	box-shadow: 0 12px 40px rgba(249, 245, 114, 0.3);
}

.tier-nav-card.third:hover {
	border-color: var(--tier-third);
	box-shadow: 0 12px 40px rgba(249, 114, 114, 0.3);
}

.tier-nav-card.final:hover {
	border-color: var(--tier-final);
	box-shadow: 0 12px 40px rgba(128, 65, 187, 0.3);
}

.tier-nav-icon {
	font-size: 48px;
	margin-bottom: 16px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tier-nav-card h3 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: var(--text-light);
}

.tier-nav-level {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px 0;
	padding: 6px 12px;
	background: rgba(0, 255, 170, 0.1);
	border-radius: 20px;
	display: inline-block;
}

/* Tier-specific level colors */
.tier-nav-card.rook .tier-nav-level {
	color: var(--tier-rook);
	background: rgba(255, 255, 255, 0.1);
}

.tier-nav-card.first .tier-nav-level {
	color: var(--tier-first);
	background: rgba(122, 249, 114, 0.1);
}

.tier-nav-card.second .tier-nav-level {
	color: var(--tier-second);
	background: rgba(249, 245, 114, 0.1);
}

.tier-nav-card.third .tier-nav-level {
	color: var(--tier-third);
	background: rgba(249, 114, 114, 0.1);
}

.tier-nav-location {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 16px 0;
}

.tier-nav-arrow {
	font-size: 24px;
	color: var(--accent-cyan);
	opacity: 0;
	transition: all var(--transition-normal);
}

.tier-nav-card:hover .tier-nav-arrow {
	opacity: 1;
	transform: translateX(4px);
}

/* Final tier card spans 2 columns */
.tier-nav-card.final {
	grid-column: span 2;
}

/* ====================================
   INFO SECTION
   ==================================== */

.location-info {
	margin-bottom: 40px;
}

.info-box {
	background: rgba(0, 255, 170, 0.05);
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.info-box-icon {
	font-size: 32px;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.info-box-content {
	flex: 1;
}

.info-box-content h3 {
	font-size: 18px;
	color: var(--text-light);
	margin: 0 0 8px 0;
}

.info-box-content p {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}

/* ====================================
   ACTIONS
   ==================================== */

.location-actions {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
}

.btn-back,
.btn-next {
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	text-decoration: none;
	color: var(--text-light);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

.btn-back:hover,
.btn-next:hover {
	transform: translateY(-2px);
	border-color: var(--accent-cyan);
	box-shadow: var(--shadow-md);
}

.btn-icon {
	font-size: 18px;
}

/* ====================================
   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) {
	.location-container {
		padding: 32px 16px;
	}
	
	.location-title {
		font-size: 36px;
	}
	
	.tier-navigation {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.location-container {
		padding: 24px 16px;
	}
	
	.location-title {
		font-size: 32px;
	}
	
	.location-logo {
		font-size: 48px;
	}
	
	.tier-navigation {
		grid-template-columns: 1fr;
	}
	
	.location-actions {
		flex-direction: column;
	}
	
	.btn-back,
	.btn-next {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.location-container {
		padding: 20px 12px;
	}
	
	.location-title {
		font-size: 28px;
	}
	
	.tier-nav-card {
		padding: 24px 20px;
	}
	
	.tier-nav-icon {
		font-size: 40px;
	}
	
	.tier-nav-card h3 {
		font-size: 20px;
	}
	
	.info-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;
	}
}
