/* ====================================
   INSTRUCTION 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;
	
	/* Reward Rarity Colors */
	--rarity-very-usual: #7AF972;
	--rarity-usual: #72F9DA;
	--rarity-medium: #7276F9;
	--rarity-hard: #F9F572;
	--rarity-rare: #F97272;
	--rarity-very-rare: #F172F9;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.instruction-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ====================================
   HEADER
   ==================================== */

.instruction-header {
	text-align: center;
	margin-bottom: 32px;
}

.instruction-logo {
	font-size: 64px;
	margin-bottom: 16px;
	animation: float 3s ease-in-out infinite;
}

.instruction-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);
}

.instruction-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ====================================
   NAVIGATION TABS
   ==================================== */

.instruction-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);
}

/* ====================================
   SECTIONS
   ==================================== */

.instruction-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);
}

.section-content p {
	font-size: 15px;
	line-height: 1.8;
	color: var(--text-muted);
	margin: 0 0 20px 0;
}

.section-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;
}

.text-success {
	color: var(--accent-cyan);
}

/* ====================================
   INFO BOXES
   ==================================== */

.info-box {
	background: rgba(0, 255, 170, 0.05);
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.info-box.warning {
	background: rgba(249, 242, 114, 0.05);
	border-color: rgba(249, 242, 114, 0.2);
}

.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 12px 0;
}

.info-box-content p {
	margin: 0;
}

.info-box-content ul {
	margin: 12px 0 0 0;
	padding-left: 20px;
	list-style: none;
}

.info-box-content ul li {
	padding: 8px 0;
	position: relative;
}

.info-box-content ul li::before {
	content: '▸';
	position: absolute;
	left: -20px;
	color: var(--accent-cyan);
	font-weight: 700;
}

/* ====================================
   HIGHLIGHT BOX
   ==================================== */

.highlight-box {
	background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
	border-left: 4px solid var(--accent-cyan);
	padding: 20px 24px;
	margin: 24px 0;
	border-radius: 8px;
}

.highlight-box p {
	margin: 0;
	font-size: 16px;
	color: var(--text-light);
}

/* ====================================
   IMAGE CARDS
   ==================================== */

.image-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 16px;
	margin: 24px 0;
	text-align: center;
}

.image-card img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: var(--shadow-md);
}

.image-caption {
	margin: 12px 0 0 0;
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
}

/* ====================================
   TIER GRID
   ==================================== */

.tier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.tier-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: all var(--transition-normal);
}

.tier-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-cyan);
	box-shadow: 0 8px 24px rgba(0, 255, 170, 0.2);
}

.tier-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.tier-card h3 {
	font-size: 18px;
	color: var(--text-light);
	margin: 0 0 8px 0;
}

.tier-level {
	font-size: 14px;
	color: var(--accent-cyan);
	margin: 0 0 8px 0;
	font-weight: 600;
}

.tier-bosses {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   CHANCES GRID
   ==================================== */

.chances-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.chance-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: all var(--transition-normal);
}

.chance-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.chance-percentage {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 8px;
}

.chance-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Rarity Colors */
.chance-card[data-rarity="very-usual"] {
	border-color: var(--rarity-very-usual);
}
.chance-card[data-rarity="very-usual"] .chance-percentage {
	color: var(--rarity-very-usual);
}

.chance-card[data-rarity="usual"] {
	border-color: var(--rarity-usual);
}
.chance-card[data-rarity="usual"] .chance-percentage {
	color: var(--rarity-usual);
}

.chance-card[data-rarity="medium"] {
	border-color: var(--rarity-medium);
}
.chance-card[data-rarity="medium"] .chance-percentage {
	color: var(--rarity-medium);
}

.chance-card[data-rarity="hard"] {
	border-color: var(--rarity-hard);
}
.chance-card[data-rarity="hard"] .chance-percentage {
	color: var(--rarity-hard);
}

.chance-card[data-rarity="rare"] {
	border-color: var(--rarity-rare);
}
.chance-card[data-rarity="rare"] .chance-percentage {
	color: var(--rarity-rare);
}

.chance-card[data-rarity="very-rare"] {
	border-color: var(--rarity-very-rare);
}
.chance-card[data-rarity="very-rare"] .chance-percentage {
	color: var(--rarity-very-rare);
}

/* ====================================
   UPGRADE HAMMERS
   ==================================== */

.subsection-title {
	font-size: 22px;
	color: var(--text-light);
	margin: 32px 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--border-color);
}

.hammer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.hammer-card {
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: all var(--transition-normal);
}

.hammer-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-cyan);
	box-shadow: 0 8px 24px rgba(0, 255, 170, 0.2);
}

.hammer-icon {
	margin-bottom: 16px;
}

.hammer-icon img {
	width: 64px;
	height: 64px;
	image-rendering: pixelated;
}

.hammer-card h3 {
	font-size: 18px;
	color: var(--text-light);
	margin: 0 0 8px 0;
}

.hammer-name {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 12px 0;
	font-style: italic;
}

.hammer-range {
	font-size: 16px;
	color: var(--accent-cyan);
	margin: 0 0 12px 0;
	font-weight: 600;
}

.hammer-items {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
}

/* ====================================
   UPGRADE TABLE
   ==================================== */

.table-responsive {
	overflow-x: auto;
	margin: 24px 0;
}

.upgrade-table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(26, 35, 50, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
}

.upgrade-table thead {
	background: rgba(15, 20, 26, 0.8);
}

.upgrade-table th {
	padding: 16px 12px;
	text-align: center;
	font-weight: 700;
	color: var(--accent-cyan);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
}

.upgrade-table td {
	padding: 14px 12px;
	text-align: center;
	color: var(--text-light);
	font-size: 14px;
	border-bottom: 1px solid rgba(42, 52, 64, 0.5);
}

.upgrade-table tbody tr:last-child td {
	border-bottom: none;
}

.upgrade-table tbody tr:hover {
	background: rgba(0, 255, 170, 0.05);
}

.upgrade-table .success {
	color: var(--rarity-very-usual);
	font-weight: 600;
}

.upgrade-table .medium {
	color: var(--rarity-hard);
	font-weight: 600;
}

.upgrade-table .hard {
	color: var(--rarity-rare);
	font-weight: 600;
}

.upgrade-table .very-hard {
	color: var(--rarity-very-rare);
	font-weight: 600;
}

.upgrade-table .regress {
	color: var(--rarity-rare);
}

.note {
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
	margin: 16px 0 0 0;
	padding: 12px;
	background: rgba(26, 35, 50, 0.3);
	border-radius: 8px;
}

/* ====================================
   ACTIONS
   ==================================== */

.instruction-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) {
	.instruction-container {
		padding: 32px 16px;
	}
	
	.instruction-title {
		font-size: 36px;
	}
	
	.tier-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.chances-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.instruction-container {
		padding: 24px 16px;
	}
	
	.instruction-title {
		font-size: 32px;
	}
	
	.instruction-logo {
		font-size: 48px;
	}
	
	.instruction-section {
		padding: 24px;
	}
	
	.tier-grid,
	.hammer-grid {
		grid-template-columns: 1fr;
	}
	
	.chances-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.instruction-actions {
		flex-direction: column;
	}
	
	.btn-back,
	.btn-next {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.instruction-container {
		padding: 20px 12px;
	}
	
	.instruction-title {
		font-size: 28px;
	}
	
	.instruction-section {
		padding: 20px;
	}
	
	.section-header h2 {
		font-size: 24px;
	}
	
	.chances-grid {
		grid-template-columns: 1fr;
	}
	
	.info-box {
		flex-direction: column;
		text-align: center;
	}
	
	.upgrade-table {
		font-size: 12px;
	}
	
	.upgrade-table th,
	.upgrade-table td {
		padding: 10px 8px;
	}
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
