:root {
	--color-primary: #4CAF50; /* Травяной зеленый */
	--color-primary-dark: #388E3C;
	--color-primary-light: #C8E6C9;
	--color-accent: #FF9800; /* Оранжевый */
	--color-background: #F5F5F5; /* Светлый фон */
	--color-surface: #FFFFFF; /* Белый */
	--color-text: #333333; /* Темный текст */
	--color-text-secondary: #666666;
	--color-border: #E0E0E0;
	--color-hover: #F8F9FA;
	--font-pixel: 'Press Start 2P', cursive;
	--font-main: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	margin: 0;
	padding: 0;
	background-color: var(--color-background);
	background-image: 
	radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
	radial-gradient(circle at 90% 80%, rgba(255, 152, 0, 0.05) 0%, transparent 50%);
	color: var(--color-text);
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* ===== HEADER ===== */
header {
	text-align: center;
	margin-bottom: 25px;
	padding: 12px 20px;
	background: linear-gradient(135deg, var(--color-surface) 0%, #F8FFFD 100%);
	border-radius: 16px;
	border: 1px solid var(--color-border);
	box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
	position: relative;
	overflow: hidden;
}

header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}


.header-icon {
	font-size: 3.5em;
	margin-bottom: 15px;
	display: block;
	filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.1));
	animation: gentleSway 4s ease-in-out infinite;
}

@keyframes gentleSway {
	0%, 100% {
		transform: rotate(0deg) scale(1);
	}
	25% {
		transform: rotate(-2deg) scale(1.02);
	}
	75% {
		transform: rotate(2deg) scale(1.02);
	}
}		

header h1 {
	margin: 0 0 15px 0;
	font-size: 2.2em;
	font-family: var(--font-pixel);
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	letter-spacing: -1px;
	line-height: 1.3;
}

header p {
	margin: 0;
	font-size: 1.3em;
	color: var(--color-text-secondary);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-weight: 300;
}

/* ===== NAVIGATION TABS ===== */
.tab {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
	background-color: var(--color-surface);
	border-radius: 12px 12px 0 0;
	padding: 15px 15px 0 15px;
	border: 1px solid var(--color-border);
	border-bottom: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab button {
	flex: 1;
	min-width: 130px;
	padding: 16px 24px;
	border: none;
	outline: none;
	cursor: pointer;
	background-color: transparent;
	color: var(--color-text-secondary);
	font-weight: 500;
	border-radius: 8px 8px 0 0;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	font-family: var(--font-main);
	font-size: 1em;
}

.tab button:hover {
	background-color: var(--color-hover);
	color: var(--color-text);
	transform: translateY(-2px);
}

.tab button.active {
	background-color: var(--color-surface);
	color: var(--color-primary-dark);
	box-shadow: 0 -2px 10px rgba(76, 175, 80, 0.1);
	font-weight: 600;
}

.tab button.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	border-radius: 2px;
}

/* ===== TAB CONTENT ===== */
.tabcontent {
	display: none;
	padding: 40px;
	background-color: var(--color-surface);
	border-radius: 0 0 12px 12px;
	border: 1px solid var(--color-border);
	border-top: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 40px;
}

#Home {
	display: block;
}

.tabcontent h2 {
	color: var(--color-primary-dark);
	margin-top: 0;
	border-bottom: 2px solid var(--color-primary-light);
	padding-bottom: 15px;
	font-size: 1.8em;
	font-family: var(--font-pixel);
	line-height: 1.4;
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */
.home-content h3 {
	color: var(--color-accent);
	margin-top: 30px;
	font-size: 1.3em;
	font-family: var(--font-pixel);
	border-left: 4px solid var(--color-accent);
	padding-left: 15px;
	line-height: 1.4;
}

.home-content ul, .home-content ol {
	padding-left: 25px;
}

.home-content li {
	margin-bottom: 12px;
	padding-left: 8px;
	position: relative;
	list-style-type: none;
}

.home-content ul li::before {
	content: '■';
	color: var(--color-primary);
	position: absolute;
	left: -20px;
	font-family: var(--font-pixel);
	font-size: 0.8em;
}

.home-content ol {
	counter-reset: item;
	padding-left: 25px;
}

.home-content ol li {
	counter-increment: item;
}

.home-content ol li::before {
	content: counter(item) ". ";
	color: var(--color-primary);
	position: absolute;
	left: -25px;
	font-weight: 600;
}

.home-content strong {
	color: var(--color-primary-dark);
}

.home-content a {
	color: var(--color-accent);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s;
	border-bottom: 1px solid transparent;
}

.home-content a:hover {
	color: var(--color-accent);
}

.minecraft-icon {
	font-family: var(--font-pixel);
	display: inline-block;
	margin-right: 8px;
	color: var(--color-primary);
	font-size: 0.9em;
}

.feature-list {
	background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
	padding: 25px;
	border-radius: 12px;
	border-left: 4px solid var(--color-primary);
	margin: 20px 0;
}

/* ===== RECOMMENDED CORE BUTTON ===== */
.recommended-core-container {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	margin: 25px 0;
	flex-wrap: wrap;
}

.recommended-core-text {
	flex: 1;
	min-width: 300px;
}

.recommended-core-button {
	flex: 0 0 auto;
}

.btn-recommended {
	background: linear-gradient(135deg, #2196F3, #1976D2);
	color: white;
	padding: 16px 28px;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
	text-align: center;
	border: none;
	cursor: pointer;
	font-size: 1em;
	box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
	font-family: var(--font-main);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.btn-recommended::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}

.btn-recommended:hover::before {
	left: 100%;
}

.btn-recommended:hover {
	background: linear-gradient(135deg, #1976D2, #1565C0);
	box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
	transform: translateY(-3px);
}

.btn-recommended:active {
	transform: translateY(-1px);
}

/* ===== FILE TABLE ===== */
.file-table {
	display: flex;
	flex-direction: column;
	margin-top: 25px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--color-surface);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-header {
	display: flex;
	background: linear-gradient(135deg, var(--color-primary-light), #E8F5E9);
	font-weight: 600;
	color: var(--color-primary-dark);
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font-pixel);
	font-size: 0.8em;
}

.table-row {
	display: flex;
	border-bottom: 1px solid var(--color-border);
	transition: all 0.3s ease;
}

.table-row:last-child {
	border-bottom: none;
}

.table-row:hover {
	background-color: var(--color-hover);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-col {
	padding: 18px;
	display: flex;
	align-items: center;
}

.col-version {
	flex: 3;
	font-weight: 600;
}

.col-size {
	flex: 1;
	justify-content: center;
}

.col-actions {
	flex: 2;
	justify-content: flex-end;
}

.file-version {
	color: var(--color-primary-dark);
	font-family: var(--font-pixel);
	font-size: 0.85em;
	background: #E8F5E9;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid var(--color-primary-light);
}

.file-size {
	color: var(--color-text-secondary);
	font-weight: 500;
}

.file-actions {
	display: flex;
	gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
	padding: 12px 24px;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
	text-align: center;
	border: none;
	cursor: pointer;
	font-size: 0.95em;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	font-family: var(--font-main);
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}

.btn:hover::before {
	left: 100%;
}

.btn-download {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: white;
	border: 1px solid var(--color-primary-dark);
}

.btn-download:hover {
	background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
	transform: translateY(-2px);
}

.btn-create {
	background: linear-gradient(135deg, var(--color-accent), #F57C00);
	color: white;
	border: 1px solid #F57C00;
}

.btn-create:hover {
	background: linear-gradient(135deg, #F57C00, var(--color-accent));
	box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
	transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
	text-align: center;
	padding: 30px 20px;
	color: var(--color-text-secondary);
	font-size: 0.95em;
	border-top: 1px solid var(--color-border);
	background-color: var(--color-surface);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 400px;
}

.footer-text {
	flex: 1;
}

.yandex-metrika-informer {
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.yandex-metrika-informer:hover {
	opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
	.tab button {
		min-width: 110px;
		padding: 14px 16px;
		font-size: 0.9em;
	}
	
	header h1 {
		font-size: 1.6em;
	}
	
	.header-icon {
		font-size: 2.5em;
	}
	
	.tabcontent {
		padding: 25px 20px;
	}
	
	.tabcontent h2 {
		font-size: 1.4em;
	}
	
	.home-content h3 {
		font-size: 1.1em;
	}
	
	.recommended-core-container {
		flex-direction: column;
		gap: 20px;
	}
	
	.recommended-core-text {
		min-width: 100%;
	}
	
	.btn-recommended {
		width: 100%;
		padding: 14px 20px;
		font-size: 0.95em;
	}
	
	.table-header {
		display: none;
	}
	
	.table-row {
		flex-direction: column;
		padding: 20px;
		margin-bottom: 15px;
		border-radius: 8px;
		border: 1px solid var(--color-border);
	}
	
	.table-col {
		padding: 8px 0;
		justify-content: flex-start;
	}
	
	.col-version::before {
		content: "Версия: ";
		font-weight: 600;
		color: var(--color-text-secondary);
		margin-right: 8px;
	}
	
	.col-size::before {
		content: "Размер: ";
		font-weight: 600;
		color: var(--color-text-secondary);
		margin-right: 8px;
	}
	
	.col-actions {
		justify-content: center;
		margin-top: 15px;
		padding-top: 15px;
		border-top: 1px solid var(--color-border);
	}
	
	.file-actions {
		width: 100%;
		justify-content: space-around;
	}
	
	.btn {
		flex: 1;
		margin: 0 5px;
		font-size: 0.85em;
		padding: 10px 16px;
	}
	
	.footer-content {
		flex-direction: column;
		gap: 15px;
	}
}

/* Анимации */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tabcontent {
	animation: slideIn 0.4s ease-out;
}

@keyframes bounce {
	0%, 20%, 60%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-5px);
	}
	80% {
		transform: translateY(-3px);
	}
}

.btn:active {
	animation: bounce 0.3s;
}