/* ====================================
   REWARDS 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;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--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;
	
	/* Rarity Colors */
	--rarity-very-usual: #7AF972;
	--rarity-usual: #72F9DA;
	--rarity-medium: #7276F9;
	--rarity-hard: #F9F572;
	--rarity-rare: #F97272;
	--rarity-very-rare: #F172F9;
}

/* ====================================
   CONTAINER
   ==================================== */

.rewards-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ====================================
   HEADER
   ==================================== */

.rewards-header {
	text-align: center;
	margin-bottom: 32px;
}

.rewards-logo {
	font-size: 64px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

.rewards-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 12px 0;
}

.rewards-title.rook {
	color: var(--tier-rook);
	text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.rewards-title.first {
	color: var(--tier-first);
	text-shadow: 0 0 30px rgba(122, 249, 114, 0.3);
}

.rewards-title.second {
	color: var(--tier-second);
	text-shadow: 0 0 30px rgba(249, 245, 114, 0.3);
}

.rewards-title.third {
	color: var(--tier-third);
	text-shadow: 0 0 30px rgba(249, 114, 114, 0.3);
}

.rewards-title.final {
	color: var(--tier-final);
	text-shadow: 0 0 30px rgba(128, 65, 187, 0.3);
}

.rewards-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   NAVIGATION
   ==================================== */

.rewards-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);
}

.rewards-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);
}

/* ====================================
   INTRO
   ==================================== */

.rewards-intro {
	text-align: center;
	margin-bottom: 40px;
}

.rewards-intro p {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}

.rewards-intro strong {
	color: var(--text-light);
}

/* ====================================
   RARITY SECTIONS
   ==================================== */

.rarity-section {
	margin-bottom: 40px;
	background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 32px;
	box-shadow: var(--shadow-md);
}

.rarity-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--border-color);
}

.rarity-icon {
	font-size: 32px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rarity-header h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
}

/* Rarity-specific colors */
.rarity-section[data-rarity="very-usual"] {
	border-color: rgba(122, 249, 114, 0.3);
}
.rarity-section[data-rarity="very-usual"] .rarity-header h2 {
	color: var(--rarity-very-usual);
}

.rarity-section[data-rarity="usual"] {
	border-color: rgba(114, 249, 218, 0.3);
}
.rarity-section[data-rarity="usual"] .rarity-header h2 {
	color: var(--rarity-usual);
}

.rarity-section[data-rarity="medium"] {
	border-color: rgba(114, 118, 249, 0.3);
}
.rarity-section[data-rarity="medium"] .rarity-header h2 {
	color: var(--rarity-medium);
}

.rarity-section[data-rarity="hard"] {
	border-color: rgba(249, 245, 114, 0.3);
}
.rarity-section[data-rarity="hard"] .rarity-header h2 {
	color: var(--rarity-hard);
}

.rarity-section[data-rarity="rare"] {
	border-color: rgba(249, 114, 114, 0.3);
}
.rarity-section[data-rarity="rare"] .rarity-header h2 {
	color: var(--rarity-rare);
}

.rarity-section[data-rarity="very-rare"] {
	border-color: rgba(241, 114, 249, 0.3);
}
.rarity-section[data-rarity="very-rare"] .rarity-header h2 {
	color: var(--rarity-very-rare);
}

/* ====================================
   ITEMS GRID
   ==================================== */

.items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 15px;
}

.item-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);
}

.item-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-cyan);
	box-shadow: 0 8px 24px rgba(0, 255, 170, 0.2);
}

/* Rarity-specific item card colors */
.item-card[data-rarity="very-usual"] {
	background: rgba(122, 249, 114, 0.1);
	border-color: rgba(122, 249, 114, 0.3);
}
.item-card[data-rarity="very-usual"] .item-name {
	color: var(--rarity-very-usual);
}

.item-card[data-rarity="usual"] {
	background: rgba(114, 249, 218, 0.1);
	border-color: rgba(114, 249, 218, 0.3);
}
.item-card[data-rarity="usual"] .item-name {
	color: var(--rarity-usual);
}

.item-card[data-rarity="medium"] {
	background: rgba(114, 118, 249, 0.1);
	border-color: rgba(114, 118, 249, 0.3);
}
.item-card[data-rarity="medium"] .item-name {
	color: var(--rarity-medium);
}

.item-card[data-rarity="hard"] {
	background: rgba(249, 245, 114, 0.1);
	border-color: rgba(249, 245, 114, 0.3);
}
.item-card[data-rarity="hard"] .item-name {
	color: var(--rarity-hard);
}

.item-card[data-rarity="rare"] {
	background: rgba(249, 114, 114, 0.1);
	border-color: rgba(249, 114, 114, 0.3);
}
.item-card[data-rarity="rare"] .item-name {
	color: var(--rarity-rare);
}

.item-card[data-rarity="very-rare"] {
	background: rgba(241, 114, 249, 0.1);
	border-color: rgba(241, 114, 249, 0.3);
}
.item-card[data-rarity="very-rare"] .item-name {
	color: var(--rarity-very-rare);
}

/* Rarity-specific link colors */
.item-card[data-rarity] a {
	font-weight: bold;
	text-decoration: underline;
}

.item-card[data-rarity="very-usual"] a {
	color: var(--rarity-very-usual);
}

.item-card[data-rarity="usual"] a {
	color: var(--rarity-usual);
}

.item-card[data-rarity="medium"] a {
	color: var(--rarity-medium);
}

.item-card[data-rarity="hard"] a {
	color: var(--rarity-hard);
}

.item-card[data-rarity="rare"] a {
	color: var(--rarity-rare);
}

.item-card[data-rarity="very-rare"] a {
	color: var(--rarity-very-rare);
}

.item-image {
	width: 52px;
	height: 52px;
	margin: 0 0px 4px 0px;
	display: inline-block;
	image-rendering: pixelated;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.item-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.item-desc {
	font-size: 11px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.4;
}

/* ====================================
   PLACEHOLDER CARDS
   ==================================== */

.item-card.placeholder {
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.05) 0%, rgba(0, 212, 255, 0.03) 100%);
	border: 2px dashed var(--border-color);
}

.placeholder-icon {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.7;
}

.item-card.placeholder:hover {
	border-color: rgba(0, 255, 170, 0.3);
	transform: translateY(-2px);
}

/* ====================================
   INFO BOX
   ==================================== */

.info-box {
	background: rgba(0, 255, 170, 0.05);
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 12px;
	padding: 20px;
	margin: 32px 0;
	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
   ==================================== */

.rewards-actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}

.btn-back,
.btn-next,
.btn-secondary {
	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-secondary:hover {
	transform: translateY(-2px);
	border-color: var(--accent-cyan);
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	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-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) {
	.rewards-container {
		padding: 32px 16px;
	}
	
	.rewards-title {
		font-size: 36px;
	}
	
	.items-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

@media (max-width: 768px) {
	.rewards-container {
		padding: 24px 16px;
	}
	
	.rewards-title {
		font-size: 32px;
	}
	
	.rewards-logo {
		font-size: 48px;
	}
	
	.rarity-section {
		padding: 24px;
	}
	
	.items-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
	
	.rewards-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.rewards-container {
		padding: 20px 12px;
	}
	
	.rewards-title {
		font-size: 28px;
	}
	
	.rarity-section {
		padding: 20px;
	}
	
	.rarity-header h2 {
		font-size: 24px;
	}
	
	.items-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	.item-card {
		padding: 16px;
	}
	
	.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;
	}
}
