/* ====================================
   BOSS PAGES - 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
   ==================================== */

.boss-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ====================================
   HEADER
   ==================================== */

.boss-header {
	text-align: center;
	margin-bottom: 32px;
}

.boss-logo {
	font-size: 64px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

.boss-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 12px 0;
}

/* Tier-specific title colors */
.boss-title.rook {
	color: var(--tier-rook);
	text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.boss-title.first {
	color: var(--tier-first);
	text-shadow: 0 0 30px rgba(122, 249, 114, 0.3);
}

.boss-title.second {
	color: var(--tier-second);
	text-shadow: 0 0 30px rgba(249, 245, 114, 0.3);
}

.boss-title.third {
	color: var(--tier-third);
	text-shadow: 0 0 30px rgba(249, 114, 114, 0.3);
}

.boss-title.final {
	color: var(--tier-final);
	text-shadow: 0 0 30px rgba(128, 65, 187, 0.3);
}

.boss-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   NAVIGATION TABS (MAIN)
   ==================================== */

.boss-nav-main {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
	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
   ==================================== */

.boss-nav-tiers {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
	overflow-x: auto;
	padding-bottom: 4px;
	justify-content: center;
}

.tier-tab {
	padding: 8px 16px;
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 600;
	font-size: 12px;
	white-space: nowrap;
	transition: all var(--transition-normal);
	display: flex;
	align-items: center;
	gap: 4px;
}

.tier-tab:hover {
	transform: translateY(2px);
	box-shadow: var(--shadow-sm);
}

.tier-icon {
	font-size: 14px;
}

/* Active state */
.tier-tab.active {
	transform: translateY(2px);
	box-shadow: var(--shadow-md);
}

/* Tier-specific colors */
.tier-tab.rook.active {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
	border-color: var(--tier-rook);
	color: var(--tier-rook);
}

.tier-tab.first.active {
	background: linear-gradient(135deg, rgba(122, 249, 114, 0.1) 0%, rgba(122, 249, 114, 0.05) 100%);
	border-color: var(--tier-first);
	color: var(--tier-first);
}

.tier-tab.second.active {
	background: linear-gradient(135deg, rgba(249, 245, 114, 0.1) 0%, rgba(249, 245, 114, 0.05) 100%);
	border-color: var(--tier-second);
	color: var(--tier-second);
}

.tier-tab.third.active {
	background: linear-gradient(135deg, rgba(249, 114, 114, 0.1) 0%, rgba(249, 114, 114, 0.05) 100%);
	border-color: var(--tier-third);
	color: var(--tier-third);
}

.tier-tab.final.active {
	background: linear-gradient(135deg, rgba(128, 65, 187, 0.1) 0%, rgba(128, 65, 187, 0.05) 100%);
	border-color: var(--tier-final);
	color: var(--tier-final);
}

/* ====================================
   SECTIONS
   ==================================== */

.boss-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);
}

.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: 32px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.section-header h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0;
}

.section-content {
	color: var(--text-light);
}

/* ====================================
   LOCATION CARD
   ==================================== */

.location-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.location-image {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
}

.npc-images-row {
	display: block;
	position: relative;
	margin-bottom: 20px;
}

.npc-images-row .location-image {
	width: auto;
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

.npc-images-row .boss-image {
	width: 15%;
	display: block;
	margin: 0;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	transition: all var(--transition-normal);
}

.npc-portrait {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 80px !important;
	height: auto;
	z-index: 2;
}

.npc-images-row .boss-image:hover {
	transform: translateY(-4px);
	border-color: var(--tier-final);
	box-shadow: 0 8px 24px rgba(128, 65, 187, 0.3);
	background-color: rgba(128, 65, 187, 0.1);
}

.location-info-box {
	padding: 20px;
}

.location-info-box h3 {
	font-size: 20px;
	color: var(--text-light);
	margin: 0 0 12px 0;
}

.location-info-box p {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}

/* ====================================
   BOSS INTRO
   ==================================== */

.boss-intro {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0 0 24px 0;
	line-height: 1.6;
}

/* ====================================
   BOSSES GRID
   ==================================== */

.bosses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.boss-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 10px;
	text-align: center;
	transition: all var(--transition-normal);
}

.boss-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-cyan);
	box-shadow: 0 8px 24px rgba(0, 255, 170, 0.2);
}

.boss-card.second:hover {
	border-color: var(--tier-second);
	box-shadow: 0 8px 24px rgba(249, 245, 114, 0.3);
	background-color: rgba(249, 245, 114, 0.1);
}

.boss-card.first:hover {
	border-color: var(--tier-first);
	box-shadow: 0 8px 24px rgba(122, 249, 114, 0.3);
	background-color: rgba(122, 249, 114, 0.1);
}

.boss-card.rook:hover {
	border-color: var(--tier-rook);
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
	background-color: rgba(255, 255, 255, 0.1);
}

.boss-card.third:hover {
	border-color: var(--tier-third);
	box-shadow: 0 8px 24px rgba(249, 114, 114, 0.3);
	background-color: rgba(249, 114, 114, 0.1);
}

.boss-card.final:hover {
	border-color: var(--tier-final);
	box-shadow: 0 8px 24px rgba(128, 65, 187, 0.3);
	background-color: rgba(128, 65, 187, 0.1);
}

.boss-card.final:hover .boss-name,
.boss-card.final:hover .stat-badge {
	color: var(--tier-final);
}

.boss-card.final .boss-name,
.boss-card.final .stat-badge {
	color: var(--tier-final);
}

.boss-image-container {
	margin-bottom: 6px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.boss-image {
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.boss-name {
	font-size: 14px;
	color: var(--text-light);
	margin: 0 0 6px 0;
	font-weight: 700;
}

.boss-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.stat-badge {
	padding: 6px 12px;
	background: rgba(26, 35, 50, 0.8);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
}

/* Tier-specific badge colors */
.stat-badge.first {
	border-color: var(--tier-first);
	color: var(--tier-first);
	background: rgba(122, 249, 114, 0.1);
}

.stat-badge.second {
	border-color: var(--tier-second);
	color: var(--tier-second);
	background: rgba(249, 245, 114, 0.1);
}

.stat-badge.third {
	border-color: var(--tier-third);
	color: var(--tier-third);
	background: rgba(249, 114, 114, 0.1);
}

/* ====================================
   BOSS TIP
   ==================================== */

.boss-tip {
	background: rgba(0, 255, 170, 0.05);
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.tip-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.tip-content {
	flex: 1;
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
}

.tip-content strong {
	color: var(--text-light);
}

.text-link {
	color: var(--accent-cyan);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition-fast);
}

.text-link:hover {
	color: #00d4ff;
	text-decoration: underline;
}

/* ====================================
   ACTIONS
   ==================================== */

.boss-actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}

.btn-back,
.btn-next,
.btn-rewards {
	padding: 14px 20px;
	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;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

.btn-back:hover,
.btn-next:hover,
.btn-rewards:hover {
	transform: translateY(-2px);
	border-color: var(--accent-cyan);
	box-shadow: var(--shadow-md);
}

.btn-rewards {
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
	border-color: rgba(0, 255, 170, 0.3);
}

.btn-rewards:hover {
	border-color: var(--accent-cyan);
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.btn-icon {
	font-size: 16px;
}

/* ====================================
   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) {
	.boss-container {
		padding: 32px 16px;
	}
	
	.boss-title {
		font-size: 36px;
	}
	
	.bosses-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.boss-container {
		padding: 24px 16px;
	}
	
	.boss-title {
		font-size: 32px;
	}
	
	.boss-logo {
		font-size: 48px;
	}
	
	.boss-section {
		padding: 24px;
	}
	
	.bosses-grid {
		grid-template-columns: 1fr;
	}
	
	.boss-actions {
		grid-template-columns: 1fr;
	}
	
	.boss-nav-tiers {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.boss-container {
		padding: 20px 12px;
	}
	
	.boss-title {
		font-size: 28px;
	}
	
	.boss-section {
		padding: 20px;
	}
	
	.section-header h2 {
		font-size: 24px;
	}
	
	.boss-tip {
		flex-direction: column;
		text-align: center;
	}
	
	.tier-tab {
		font-size: 12px;
		padding: 8px 16px;
	}
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
