/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Roboto', sans-serif;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
	color: #d0d0d0;
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* Header Styles */
.header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px 0;
	background: linear-gradient(45deg, #2c2c2c, #1a1a1a);
	border-radius: 15px;
	border: 2px solid #555;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
	font-family: 'Orbitron', monospace;
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
	margin-bottom: 15px;
	letter-spacing: 3px;
}

.header-content h1 {
	font-family: 'Orbitron', monospace;
	font-size: 2.5rem;
	font-weight: 900;
	color: #ffffff;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	margin-bottom: 10px;
}

.header-content h1 i {
	margin-right: 15px;
	color: #cccccc;
}

.subtitle {
	font-size: 1.2rem;
	color: #999999;
	font-weight: 300;
}

.disclaimer {
	margin-top: 20px;
	padding: 15px 20px;
	background: rgba(255, 215, 0, 0.1);
	border: 1px solid #ffd700;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.disclaimer i {
	color: #ffd700;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.disclaimer p {
	color: #ffd700;
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.5;
}

/* General Rules Section */
.general-rules {
	margin-bottom: 50px;
}

.rules-card {
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border-radius: 15px;
	padding: 30px;
	border: 2px solid #555;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.rules-card h2 {
	font-family: 'Orbitron', monospace;
	font-size: 1.8rem;
	color: #ffffff;
	margin-bottom: 25px;
	text-align: center;
}

.rules-card h2 i {
	margin-right: 10px;
	color: #cccccc;
}

.rules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}

.rule-item {
	display: flex;
	align-items: center;
	padding: 15px;
	background: rgba(0, 255, 136, 0.1);
	border-radius: 10px;
	border-left: 4px solid #00ff88;
}

.rule-item i {
	margin-right: 15px;
	font-size: 1.5rem;
	color: #00ff88;
}

.loadout-minimum {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
	margin-bottom: 25px;
}

.minimum-item {
	display: flex;
	align-items: center;
	padding: 12px;
	background: rgba(255, 107, 53, 0.1);
	border-radius: 8px;
	border-left: 3px solid #ff6b35;
}

.minimum-item i {
	margin-right: 12px;
	color: #ff6b35;
}

.notes {
	background: rgba(255, 255, 255, 0.05);
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #555;
}

.notes p {
	margin-bottom: 10px;
	color: #d0d0d0;
}

.notes i {
	color: #ffffff;
	margin-right: 8px;
}

.loadout-heading {
	font-family: 'Orbitron', monospace;
	font-size: 1.4rem;
	color: #ffffff;
	margin: 25px 0 15px 0;
	text-align: center;
}

.loadout-heading i {
	margin-right: 10px;
	color: #cccccc;
}

/* Special Operations Section */
.special-operations {
	margin-bottom: 50px;
}

.special-operations h2 {
	font-family: 'Orbitron', monospace;
	font-size: 1.8rem;
	color: #ffffff;
	margin-bottom: 25px;
	text-align: center;
}

.special-operations h2 i {
	margin-right: 10px;
	color: #cccccc;
}

.special-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 25px;
}

.special-card {
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border-radius: 15px;
	padding: 25px;
	border: 2px solid #555;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.special-card h3 {
	font-family: 'Orbitron', monospace;
	color: #ffffff;
	margin-bottom: 20px;
	font-size: 1.3rem;
}

.special-card h3 i {
	margin-right: 10px;
	color: #cccccc;
}

.weapon-category {
	margin-bottom: 15px;
}

.weapon-category h4 {
	color: #cccccc;
	margin-bottom: 8px;
	font-size: 1.1rem;
}

.weapon-name {
	display: inline-block;
	padding: 8px 15px;
	background: rgba(0, 255, 136, 0.1);
	border: 1px solid #00ff88;
	border-radius: 20px;
	margin: 5px 5px 5px 0;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.weapon-name:hover {
	background: rgba(0, 255, 136, 0.2);
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Roles Section */
.roles {
	margin-bottom: 50px;
}

.roles h2 {
	font-family: 'Orbitron', monospace;
	font-size: 1.8rem;
	color: #ffffff;
	margin-bottom: 30px;
	text-align: center;
}

.roles h2 i {
	margin-right: 10px;
	color: #cccccc;
}

.roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 25px;
}

/* Role Cards */
.role-card {
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border-radius: 15px;
	padding: 25px;
	border: 2px solid #555;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.role-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #00ff88, #ff6b35);
}

.role-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	border-color: #00ff88;
}

.role-card.shield::before {
	background: linear-gradient(90deg, #4a90e2, #00ff88);
}

.role-card.breacher::before {
	background: linear-gradient(90deg, #ff6b35, #ff4757);
}

.role-card.rifleman::before {
	background: linear-gradient(90deg, #00ff88, #2ed573);
}

.role-card.team-leader::before {
	background: linear-gradient(90deg, #ffd700, #ff6b35);
}

.role-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #555;
}

.role-icon {
	font-size: 2.5rem;
	margin-right: 15px;
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.role-header h3 {
	font-family: 'Orbitron', monospace;
	font-size: 1.5rem;
	color: #ffffff;
	font-weight: 700;
}

.role-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.equipment-section {
	background: rgba(255, 255, 255, 0.03);
	padding: 15px;
	border-radius: 10px;
	border: 1px solid #444;
}

.equipment-section h4 {
	color: #cccccc;
	margin-bottom: 12px;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
}

.equipment-section h4 i {
	margin-right: 8px;
	font-size: 1.2rem;
}

.weapon-list {
	margin-bottom: 10px;
}

.weapon-list .weapon-name {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(0, 255, 136, 0.1);
	border: 1px solid #00ff88;
	border-radius: 15px;
	margin: 3px 5px 3px 0;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 0.9rem;
}

.weapon-list .weapon-name:hover {
	background: rgba(0, 255, 136, 0.2);
	transform: scale(1.05);
	box-shadow: 0 3px 10px rgba(0, 255, 136, 0.3);
}

.attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.attachment {
	padding: 4px 10px;
	background: rgba(255, 107, 53, 0.1);
	border: 1px solid #ff6b35;
	border-radius: 12px;
	font-size: 0.8rem;
	color: #ff6b35;
}

.equipment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.equipment-list span {
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid #666;
	border-radius: 12px;
	font-size: 0.9rem;
	color: #d0d0d0;
}

.special-notes {
	background: rgba(255, 215, 0, 0.1);
	border: 1px solid #ffd700;
	border-radius: 10px;
	padding: 15px;
	margin-top: 15px;
}

.special-notes p {
	color: #ffd700;
	font-weight: 500;
}

.special-notes i {
	margin-right: 8px;
	color: #ff6b35;
}

/* Weapon Tooltip */
.weapon-tooltip {
	position: fixed;
	background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
	border: 2px solid #00ff88;
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	max-width: 300px;
	backdrop-filter: blur(10px);
}

.weapon-tooltip.show {
	opacity: 1;
	visibility: visible;
}

.tooltip-content {
	text-align: center;
}

.tooltip-content img {
	width: 200px;
	height: auto;
	border-radius: 10px;
	margin-bottom: 15px;
	border: 2px solid #555;
}

.tooltip-info h4 {
	color: #00ff88;
	font-family: 'Orbitron', monospace;
	margin-bottom: 8px;
	font-size: 1.2rem;
}

.tooltip-info p {
	color: #cccccc;
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Tooltip close button (hidden on desktop, shown on mobile) */
.tooltip-close {
	display: none;
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	color: #00ff88;
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 40px;
	height: 40px;
	transition: all 0.3s ease;
	z-index: 10001;
}

.tooltip-close:hover {
	color: #ff6b35;
	transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 15px;
	}

	.header-content h1 {
		font-size: 2rem;
	}

	.roles-grid {
		grid-template-columns: 1fr;
	}

	.special-grid {
		grid-template-columns: 1fr;
	}

	.rules-grid {
		grid-template-columns: 1fr;
	}

	.loadout-minimum {
		grid-template-columns: 1fr;
	}

	/* Mobile Modal/Lightbox for tooltips */
	.weapon-tooltip.show {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(0, 0, 0, 0.95);
		z-index: 10000;
		padding: 20px;
		max-width: none;
	}

	.weapon-tooltip.show .tooltip-content {
		position: relative;
		background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
		border: 2px solid #00ff88;
		border-radius: 15px;
		padding: 25px;
		max-width: 90vw;
		width: 100%;
		max-width: 500px;
		box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
	}

	.weapon-tooltip.show .tooltip-content img {
		width: 200px;
		max-width: 100%;
	}

	/* Show close button on mobile */
	.tooltip-close {
		display: block;
	}

	/* Prevent body scroll when modal is open */
	body.modal-open {
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.header-content h1 {
		font-size: 1.5rem;
	}

	.subtitle {
		font-size: 1rem;
	}

	.role-card {
		padding: 20px;
	}

	.equipment-section {
		padding: 12px;
	}
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.role-card {
	animation: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(45deg, #00ff88, #ff6b35);
	border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(45deg, #00cc6a, #e55a2b);
}

/* Uniform Stage Wrapper */
.uniform-stage-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 500px;
}

/* Uniform Tabs */
.uniform-tabs {
	display: flex;
	justify-content: flex-start;
	gap: 15px;
	margin-bottom: 20px;
	margin-left: 0;
}

.tab-button {
	padding: 12px 30px;
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border: 2px solid #555;
	border-radius: 10px;
	color: #cccccc;
	font-family: 'Orbitron', monospace;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tab-button i {
	font-size: 1.1rem;
}

.tab-button:hover {
	border-color: #00ff88;
	color: #00ff88;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.tab-button.active {
	background: linear-gradient(145deg, #00ff88, #00cc6a);
	border-color: #00ff88;
	color: #000000;
	box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.tab-button.active i {
	color: #000000;
}

/* Tab Content */
.tab-content {
	display: none;
}

.tab-content.active {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Uniform Viewer */
.uniform {
	margin-bottom: 50px;
}

/* Uniform Items List Sidebar */
.uniform-items-list {
	display: none;
	flex-direction: column;
	width: 280px;
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border: 2px solid #555;
	border-radius: 15px;
	padding: 20px;
	position: sticky;
	top: 20px;
	max-height: 700px;
	overflow-y: auto;
}

.uniform-items-list h3 {
	font-family: 'Orbitron', monospace;
	font-size: 1.3rem;
	color: #00ff88;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.item-list-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.uniform-list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	background: rgba(0, 255, 136, 0.05);
	border: 1px solid #555;
	border-radius: 8px;
	cursor: pointer;
}

.uniform-list-item:hover {
	background: rgba(0, 255, 136, 0.15);
	border-color: #00ff88;
}

.uniform-list-item i {
	color: #00ff88;
	font-size: 1.1rem;
	width: 20px;
	text-align: center;
}

.uniform-list-item .item-thumbnail {
	display: block;
	width: 50px;
	height: 50px;
	object-fit: contain;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.3);
	padding: 4px;
	flex-shrink: 0;
}

.uniform-list-item span {
	color: #d0d0d0;
	font-size: 0.95rem;
	font-weight: 400;
}

/* Show sidebar on desktop */
@media (min-width: 1024px) {
	.uniform-items-list {
		display: flex;
	}
}

.uniform-stage {
	position: relative;
	width: 100%;
	max-width: 500px;
	height: 700px;
	margin: 0 auto;
	border: 2px solid #555;
	border-radius: 16px;
	background: radial-gradient(
			circle at 50% 30%,
			rgba(255, 255, 255, 0.06),
			rgba(0, 0, 0, 0.2) 60%
		),
		linear-gradient(145deg, #1e1e1e, #2a2a2a);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.uniform-figure {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	height: 90%;
	max-width: 400px;
	max-height: 600px;
	border-radius: 10px;
	object-fit: cover;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
	display: block;
	background: rgba(100, 100, 100, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 1;
}

/* Fallback for when image doesn't load */
.uniform-figure:before {
	content: 'Uniform Model Image';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #999;
	font-size: 14px;
	z-index: -1;
}

.uniform-hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #00ff88;
	background: rgba(0, 255, 136, 0.2);
	box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.uniform-hotspot:hover,
.uniform-hotspot:focus {
	transform: translate(-50%, -50%) scale(1.15);
	background: rgba(0, 255, 136, 0.3);
	box-shadow: 0 0 14px rgba(0, 255, 136, 0.6);
}
