/* Underground Rules Module Styles */

/* Main Rules Block */
.rules_block {
	color: var(--text-default);
	font-weight: var(--font-weight-7);
	font-size: var(--font-size-s);
	padding: 30px 0;
	display: none;
	width: 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 20, 0.98));
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--br-16);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
}

.rules_block::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
	animation: undergroundSlide 3s ease-in-out infinite;
	z-index: 1;
}

.rules_block:not([style*="display: none"]) {
	opacity: 1;
}

.rules_block[style*="display: block"] {
	opacity: 1;
}

.rules_block>a {
    display: flex;
    color: var(--text-default);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-l);
    text-align: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Rules Text Styles */
.rules_text {
	color: var(--text-custom);
	font-weight: var(--font-weight-7);
	font-size: var(--font-size-m);
}

.rules_text_punishment {
	color: #ff6b6b;
	font-weight: var(--font-weight-7);
	font-size: var(--font-size-m);
	background: linear-gradient(145deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
	padding: 8px 12px;
	border-radius: var(--br-8);
	border-left: 3px solid #ff6b6b;
	box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.rules_warning {
	color: #ffa726;
	font-weight: var(--font-weight-7);
	font-size: var(--font-size-m);
	background: linear-gradient(145deg, rgba(255, 167, 38, 0.1), rgba(255, 167, 38, 0.05));
	padding: 8px 12px;
	border-radius: var(--br-8);
	border-left: 3px solid #ffa726;
	box-shadow: 0 2px 8px rgba(255, 167, 38, 0.2);
	font-style: italic;
}

.rules_active {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.15));
	color: var(--span);
	border-color: rgba(139, 92, 246, 0.3);
}

/* Card Styles */
.rules_card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 20, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--br-16);
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.rules_card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
	animation: undergroundSlide 4s ease-in-out infinite;
	z-index: 1;
}

.rules_card_block {
	padding: 10px 0 0 0;
	position: relative;
	z-index: 2;
}

.rules_sticky {
    position: sticky;
    height: fit-content;
    top: 25px;
}

/* Navigation Styles */
.rules_nav_menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.rules_nav_btn {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: linear-gradient(145deg, rgba(30, 30, 35, 0.8), rgba(25, 25, 30, 0.9));
	border: 1px solid rgba(139, 92, 246, 0.15);
	border-radius: var(--br-12);
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
	width: 100%;
	position: relative;
	overflow: hidden;
	margin-bottom: 8px;
	min-height: 70px;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rules_nav_btn:hover {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.08));
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.3);
}

.rules_nav_btn.rules_nav_active {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.15));
	color: var(--text-default);
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}


.rules_nav_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.05));
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--br-8);
	flex-shrink: 0;
	transition: all 0.3s ease;
	min-width: 40px;
	min-height: 40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rules_nav_btn:hover .rules_nav_icon {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.15));
	transform: scale(1.1);
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.rules_nav_btn.rules_nav_active .rules_nav_icon {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
	color: var(--span);
	border-color: rgba(255, 255, 255, 0.3);
}

.rules_nav_icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	transition: all 0.3s ease;
}

.rules_nav_btn:hover .rules_nav_icon svg {
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.rules_nav_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	min-height: 100%;
}

.rules_nav_title {
	font-size: var(--font-size-m);
	font-weight: var(--font-weight-7);
	color: var(--text-custom);
	line-height: 1.3;
	transition: color 0.3s ease;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rules_nav_btn:hover .rules_nav_title {
	color: #8b5cf6;
	text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.rules_nav_btn.rules_nav_active .rules_nav_title {
	color: var(--text-default);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rules_nav_desc {
	font-size: var(--font-size-s);
	font-weight: var(--font-weight-5);
	color: var(--text-default);
	opacity: 0.7;
	line-height: 1.4;
	transition: all 0.3s ease;
}

.rules_nav_btn:hover .rules_nav_desc {
	opacity: 1;
	color: var(--text-default);
}

.rules_nav_btn.rules_nav_active .rules_nav_desc {
	color: var(--text-default);
	opacity: 0.9;
}

/* Main Header Styles */
.rules_main_header {
	margin-bottom: 30px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.rules_hero_card {
	background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 20, 0.98));
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--br-16);
	padding: 40px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	transition: all 0.3s ease;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
}

.rules_hero_card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
	animation: undergroundSlide 4s ease-in-out infinite;
	z-index: 1;
}

.rules_hero_card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rules_hero_content {
	display: flex;
	align-items: center;
	gap: 30px;
	position: relative;
	z-index: 2;
}

.rules_hero_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.15));
	border: 1px solid rgba(139, 92, 246, 0.3);
	border-radius: var(--br-16);
	flex-shrink: 0;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.rules_hero_icon svg {
	width: 40px;
	height: 40px;
	fill: var(--text-default);
	transition: all 0.3s ease;
}

.rules_hero_card:hover .rules_hero_icon {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), rgba(79, 70, 229, 0.25));
	transform: scale(1.1);
	box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.rules_hero_card:hover .rules_hero_icon svg {
	fill: #8b5cf6;
	filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.rules_hero_text {
	flex: 1;
}

.rules_main_title {
	font-size: var(--font-size-xxxl);
	font-weight: var(--font-weight-8);
	color: var(--text-default);
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1.2;
	font-family: 'Exo 2', 'Rajdhani', 'Audiowide', sans-serif;
	background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.rules_main_subtitle {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-6);
	color: var(--text-default);
	margin: 0 0 15px 0;
	opacity: 0.8;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rules_hero_description {
	margin-top: 15px;
}

.rules_hero_description p {
	font-size: var(--font-size-m);
	color: var(--text-default);
	margin: 0;
	opacity: 0.7;
	line-height: 1.6;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rules_hero_decoration {
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 100%;
	opacity: 0.1;
	z-index: 1;
}

.rules_hero_pattern {
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	background-size: 20px 20px;
}

/* Rules Section Header */
.rules_section_header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid rgba(139, 92, 246, 0.2);
	position: relative;
}

.rules_section_header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 2px;
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), transparent);
	border-radius: 1px;
}

.rules_title {
	font-size: var(--font-size-xxl);
	font-weight: var(--font-weight-8);
	color: var(--text-custom);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: 'Exo 2', 'Rajdhani', 'Audiowide', sans-serif;
	background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.rules_date {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-default);
	font-size: var(--font-size-s);
	opacity: 0.7;
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.05));
	padding: 8px 12px;
	border-radius: var(--br-8);
	border: 1px solid rgba(139, 92, 246, 0.2);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rules_date svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	transition: all 0.3s ease;
}

.rules_date:hover svg {
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

/* Rules Content Styles */
.rules_content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
	z-index: 2;
}

.rules_item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: linear-gradient(145deg, rgba(30, 30, 35, 0.8), rgba(25, 25, 30, 0.9));
	border: 1px solid rgba(139, 92, 246, 0.15);
	border-radius: var(--br-12);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rules_item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(79, 70, 229, 0.6));
	border-radius: 0 2px 2px 0;
}

.rules_item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.3);
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.08));
}

.rules_item_number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.15));
	color: var(--text-default);
	border-radius: var(--br-8);
	font-weight: var(--font-weight-7);
	font-size: var(--font-size-m);
	flex-shrink: 0;
	transition: all 0.3s ease;
	border: 1px solid rgba(139, 92, 246, 0.3);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.rules_item:hover .rules_item_number {
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), rgba(79, 70, 229, 0.25));
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.rules_item_text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rules_text_main {
	font-size: var(--font-size-m);
	font-weight: var(--font-weight-6);
	color: var(--text-custom);
	line-height: 1.6;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes undergroundGlow {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 0.8; }
}

@keyframes undergroundSlide {
	0% { left: -100%; }
	50% { left: 100%; }
	100% { left: 100%; }
}

/* Performance optimizations */
.rules_nav_btn, .rules_item, .rules_main_header .card {
	will-change: transform, box-shadow;
}

/* Responsive design */
@media (max-width: 768px) {
	.rules_hero_card {
		padding: 25px;
	}
	
	.rules_hero_content {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}
	
	.rules_hero_icon {
		width: 60px;
		height: 60px;
	}
	
	.rules_hero_icon svg {
		width: 30px;
		height: 30px;
	}
	
	.rules_main_title {
		font-size: var(--font-size-xxl);
		letter-spacing: 1px;
	}
	
	.rules_main_subtitle {
		font-size: var(--font-size-l);
	}
	
	.rules_hero_description p {
		font-size: var(--font-size-s);
	}
	
	.rules_hero_decoration {
		width: 100px;
	}
	
	.rules_section_header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.rules_title {
		font-size: var(--font-size-xl);
	}
	
	.rules_nav_btn {
		padding: 12px 16px;
		gap: 12px;
		min-height: 60px;
		margin-bottom: 6px;
	}
	
	.rules_nav_icon {
		width: 32px;
		height: 32px;
	}
	
	.rules_nav_icon svg {
		width: 16px;
		height: 16px;
	}
	
	.rules_nav_title {
		font-size: var(--font-size-s);
	}
	
	.rules_nav_desc {
		font-size: var(--font-size-xs);
	}
	
	.rules_item {
		padding: 16px;
		gap: 12px;
	}
	
	.rules_item_number {
		width: 32px;
		height: 32px;
		font-size: var(--font-size-s);
	}
	
	.rules_text_main {
		font-size: var(--font-size-s);
	}
	
	.rules_text_punishment,
	.rules_warning {
		font-size: var(--font-size-xs);
		padding: 6px 10px;
	}
}