@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-primary: #0f1419;
	--bg-secondary: #1a2332;
	--bg-tertiary: #233044;
	--bg-header: rgba(37, 99, 235, 0.05);
	--accent-primary: #2563eb;
	--accent-secondary: #f97316;
	--accent-hover: #1d4ed8;
	--orange-hover: #ea580c;
	--text-primary: #ffffff;
	--text-secondary: #cbd5e1;
	--text-muted: #64748b;
	--border: rgba(37, 99, 235, 0.2);
	--shadow: rgba(0, 0, 0, 0.4);
	--gradient: linear-gradient(135deg, #2563eb 30%, #f97316 100%);
	--glow: rgba(37, 99, 235, 0.3);
	--orange-glow: rgba(249, 115, 22, 0.3);
	--gradient-secondary: linear-gradient(135deg, #2563eb 20%, #f97316 80%);
}

body {
	font-family: 'Inter', sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	overflow-x: hidden;
	line-height: 1.6;
	min-height: 100vh;
	user-select: none;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
	z-index: -1;
}

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 15, 0.9);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	padding: 1rem 0;
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all 0.3s ease;
}

.logo img {
	width: 48px;
	height: 48px;
	padding: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.logo-text {
	font-weight: 700;
	font-size: 1.5rem;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tagline {
	font-size: 0.9rem;
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
}

.nav-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
	min-height: calc(100vh - 120px);
}

.main-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.video-section {
	background: var(--bg-secondary);
	border-radius: 10px;
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: 0 10px 25px var(--shadow);
	transition: all 0.3s ease;
}

.video-section:hover {
	border-color: var(--accent-primary);
	box-shadow: 0 20px 40px var(--shadow), 0 0 10px var(--glow);
}

.video-header {
	padding: 0.5rem;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--bg-header);
}

.video-title {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
	color: var(--text-secondary);
	word-break: break-all;
	text-decoration: none;
	transition: all 0.3s ease;
}

.video-title:hover {
	text-decoration: underline;
}

.video-counter {
	background: var(--bg-secondary);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

.video-container {
	width: 100%;
	height: 500px;
	background: #000;
}

.video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: pointer;
}

.video-controls {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(249, 115, 22, 0.02) 100%);
}

.control-buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-weight: 500;
	user-select: none;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-size: 0.9rem;
}

.btn-primary {
	background: var(--accent-primary);
	color: white;
}

.btn-primary:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px var(--glow);
}

.btn-secondary {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: rgba(37, 99, 235, 0.1);
	border-color: var(--accent-primary);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-icon {
	background: transparent;
	color: var(--text-secondary);
	padding: 0.5rem;
}

.btn-icon:hover {
	background: var(--bg-tertiary);
	color: var(--accent-secondary);
}

#foolmode {
	width: 10px;
	height: 10px;
	position: absolute;
	left: 10px;
	top: 10px;
	cursor: pointer;
	opacity: 20%;
	transition: opacity ease-in-out 0.25s;
}

#foolmode:hover {
	opacity: 100%;
}

.auto-mode {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	background: var(--bg-tertiary);
	border-radius: 8px;
	border: 1px solid var(--border);
}

.checkbox {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--accent-primary);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
}

.checkbox:checked {
	background: var(--accent-primary);
}

.checkbox:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.widget {
	background: var(--bg-secondary);
	border-radius: 10px;
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: 0 10px 25px var(--shadow);
	transition: all 0.3s ease;
}

.widget:hover {
	border-color: var(--orange-glow);
	box-shadow: 0 15px 35px var(--shadow);
}

.widget-header {
	padding: 0.6rem;
	border-bottom: 1px solid var(--border);
	font-weight: 600;
	background: var(--bg-header);
	color: var(--text-primary);
}

.widget-content {
	padding: 1.25rem;
}

.stats-grid {
	display: grid;
	gap: 1rem;
}

.stat-item {
	text-align: center;
	padding: 1rem;
	background: var(--bg-primary);
	border-radius: 8px;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
}

.stat-label {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
}

.links-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.link-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.link-item:hover {
	background: var(--bg-primary);
	border-color: var(--border);
	transform: translateX(4px);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.link-icon {
	width: 20px;
	height: 20px;
	color: var(--accent-secondary);
	transition: all 0.3s ease;
}

.link-item:hover .link-icon {
	color: var(--accent-primary);
}

.hubcontainer {
	height: 165px;
	min-height: 150px;
	min-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-primary);
	border: 1px solid var(--border);
	position: relative;
	resize: vertical;
}

.back-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--bg-secondary);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 8px;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
	font-weight: 500;
}

.back-link:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.contact-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.contacts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.contact-section {
	background: var(--bg-secondary);
	border-radius: 10px;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
	overflow: hidden;
	box-shadow: 0 10px 25px var(--shadow);
}

.contact-section:hover {
	border-color: var(--accent-primary);
	box-shadow: 0 20px 40px var(--shadow), 0 0 15px var(--glow);
}

.section-header {
	padding: 0.5rem;
	border-bottom: 1px solid var(--border);
	background: var(--bg-header);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.section-icon {
	width: 24px;
	height: 24px;
	color: var(--accent-secondary);
}

.section-title {
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--text-primary);
}

.contacts-list {
	padding: 0.7rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.4rem;
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	background: var(--bg-primary);
}

.contact-item:hover {
	background: var(--bg-tertiary);
	border-color: var(--accent-primary);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.contact-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.contact-info {
	flex: 1;
}

.contact-name {
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.contact-handle {
	font-size: 0.9rem;
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
}

.contact-external {
	width: 16px;
	height: 16px;
	color: var(--text-muted);
	transition: all 0.3s ease;
}

.contact-item:hover .contact-external {
	color: var(--accent-primary);
	transform: translateX(4px);
}

.image-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 1rem 0;
	position: relative;
}

.theme-selector {
	position: relative;
}

.theme-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 100px;
	justify-content: space-between;
	transition: all 0.3s ease;
}

.theme-toggle:hover .dropdown-arrow {
	transform: translateY(-1px);
}

.theme-dropdown {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	width: 240px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 20px 40px var(--shadow), 0 0 20px rgba(37, 99, 235, 0.1);
	backdrop-filter: blur(20px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	overflow: hidden;
}

.theme-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.theme-dropdown-header {
	padding: 0.3rem;
	border-bottom: 1px solid var(--border);
	background: var(--bg-header);
}

.theme-search {
	width: 100%;
	padding: 0.5rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text-primary);
	font-family: inherit;
	font-size: 0.9rem;
	outline: none;
	transition: all 0.3s ease;
}

.theme-search:focus {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.theme-search::placeholder {
	color: var(--text-muted);
}

.theme-list {
	max-height: 300px;
	overflow-y: auto;
	padding: 0.5rem;
}

.theme-list::-webkit-scrollbar {
	width: 6px;
}

.theme-list::-webkit-scrollbar-track {
	background: var(--bg-primary);
	border-radius: 3px;
}

.theme-list::-webkit-scrollbar-thumb {
	background: var(--accent-primary);
	border-radius: 3px;
}

.theme-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.35rem;
	margin: 0.25rem 0;
	border-radius: 6px;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	position: relative;
	overflow: hidden;
}

.theme-item:hover {
	background: var(--bg-primary);
	border-color: var(--accent-primary);
	transform: translateX(2px);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.theme-item.active {
	background: rgba(37, 99, 235, 0.1);
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}

.theme-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--accent-primary);
}

.theme-info {
	flex: 1;
	min-width: 0;
}

.theme-name {
	font-weight: 500;
	font-size: 0.9rem;
	margin-bottom: 0.125rem;
}

.dropdown-arrow {
	transition: transform 0.3s ease;
}

.theme-toggle.open .dropdown-arrow {
	transform: rotate(180deg);
}

#banner-image {
	max-width: 500px;
	max-height: 400px;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 20px 40px var(--shadow);
	border: 2px solid var(--border);
	transition: all 0.3s ease;
}

#banner-image:hover {
	box-shadow: 0 25px 50px var(--shadow), 0 0 20px var(--glow);
	border-color: var(--accent-primary);
}

.floating-hubchicken {
	position: fixed;
	width: 50px;
	height: 50px;
	background-image: url('https://hubchicken.pages.dev/assets/hubchicken2.png');
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 10;
	opacity: 0;
	filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
}

.dot {
	position: fixed;
	width: 3px;
	height: 3px;
	background: var(--accent-primary);
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
	animation: twinkle 2s ease-in-out infinite;
}

@media (max-width: 768px) {
	.container {
		grid-template-columns: 1fr;
		padding: 1rem;
		gap: 1.5rem;
	}
	.header-content {
		padding: 0 1rem;
	}
	.logo-text {
		font-size: 1.25rem;
	}
	.control-buttons {
		flex-direction: column;
	}
	.btn {
		justify-content: center;
	}
	.video-header {
		flex-direction: column;
		gap: 0.75rem;
		align-items: flex-start;
	}
	.contact-container {
		padding: 1rem;
	}
	.contacts-grid {
		grid-template-columns: 1fr;
	}
	.contact-item {
		padding: 0.75rem;
	}
	.main-container {
		padding: 1rem;
	}
	.floating-hubchicken {
		width: 35px;
		height: 35px;
	}
}

.fade-in {
	animation: fade-in-scale 1s ease-out;
}

@keyframes fade-in-scale {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes float {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.8);
	}
	10% {
		opacity: 0.8;
		transform: translateY(0px) scale(1);
	}
	90% {
		opacity: 0.8;
		transform: translateY(-10px) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-30px) scale(0.8);
	}
}

@keyframes twinkle {
	0%,	100% {
		opacity: 0.3;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.5);
		box-shadow: 0 0 10px var(--accent-primary);
	}
}

@keyframes jumpscare {
	from { opacity: 1; }
	to { opacity: 0; }
}

.jumpscare {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
	animation: jumpscare 1.25s forwards;
	pointer-events: none;
}
