:root {
	--brand-color: #FF2A00;
	--bg-color: #020202;
	--surface-color: #0A0A0A;
	--card-bg: #0C0C0C;
	--border-color: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(255, 255, 255, 0.2);
	--radius-md: 12px;
	--radius-lg: 16px;
	--ease-custom: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
	scrollbar-width: thin;
	scrollbar-color: #333 var(--bg-color);
}

body {
	background-color: var(--bg-color);
	color: #e4e4e7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	font-family: 'Inter', sans-serif;
}

/* System oceniania */
.vote-btn {
    @apply flex items-center gap-1.5 px-2 py-1 rounded-md transition-all duration-200 text-[10px] font-bold border border-transparent;
}
.vote-up { @apply text-zinc-500 hover:text-green-500 hover:bg-green-500/10 hover:border-green-500/20; }
.vote-down { @apply text-zinc-500 hover:text-red-500 hover:bg-red-500/10 hover:border-red-500/20; }
.vote-up.active { @apply text-green-500 bg-green-500/10 border-green-500/20; }
.vote-down.active { @apply text-red-500 bg-red-500/10 border-red-500/20; }

.rating-bar-container {
    @apply w-full h-1 bg-white/5 rounded-full overflow-hidden mt-1;
}
.rating-bar-fill {
    @apply h-full bg-brand-500 transition-all duration-1000 ease-out;
}

@keyframes pulse-once {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.animate-pulse-once { animation: pulse-once 0.3s ease-out; }

.scanlines {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
	background-size: 100% 4px;
	z-index: 100;
	pointer-events: none;
	opacity: 0.1;
}

.interactive-el {
	transition: transform 0.1s var(--ease-custom), opacity 0.2s ease;
	cursor: pointer;
	touch-action: manipulation;
}

.interactive-el:active {
	transform: scale(0.96);
}

.glass-panel {
	background: #0A0A0A;
	border: 1px solid var(--border-color);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.tech-card {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	transition: all 0.2s ease-out;
	position: relative;
	z-index: 1;
}

.tech-card:hover {
	border-color: var(--border-hover);
	background: #121212;
	transform: translateY(-1px);
	box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.6);
	z-index: 2;
}

.tech-card:hover .icon-box {
	color: var(--brand-color);
	background: rgba(255, 42, 0, 0.1);
	border-color: rgba(255, 42, 0, 0.2);
}

.spotlight-card {
	position: relative;
	background: #141414;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.3s var(--ease-custom);
}

.spotlight-card:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.filter-btn {
	padding: 5px 10px;
	font-size: 9px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 6px;
	transition: all 0.2s var(--ease-custom);
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.5);
}

.filter-btn:hover:not(.active) {
	background: rgba(255, 255, 255, 0.08);
	color: white;
}

.filter-btn.active {
	background: #e4e4e7;
	color: black;
	font-weight: 700;
	border-color: #e4e4e7;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--brand-color);
}

.page-section {
	display: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s var(--ease-custom), transform 0.4s var(--ease-custom);
}

.page-section.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.nav-item {
	position: relative;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.nav-item:hover {
	opacity: 1;
}

.nav-item.active {
	opacity: 1;
	color: white !important;
}

.nav-active-indicator {
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0%;
	height: 2px;
	background: var(--brand-color);
	transition: width 0.3s ease;
	box-shadow: 0 0 15px var(--brand-color);
}

/* Custom Header Styles */
#main-header {
    background-color: #020202;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: auto;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #a1a1aa;
    transition: all 0.2s ease;
}

.header-link i {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}

.header-link:hover, .header-link.active {
    background-color: #161616;
    color: #ffffff;
}

footer {
    background-color: #020202 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.nav-item.active .nav-active-indicator,
.log-tab-active .nav-active-indicator {
	width: 70%;
}

@media (max-width: 768px) {
	.mobile-nav .nav-active-indicator {
		display: block !important;
		top: auto;
		bottom: 0;
		width: 0%;
		height: 3px;
		border-radius: 2px 2px 0 0;
		background: var(--brand-color);
		box-shadow: 0 -4px 12px rgba(255, 42, 0, 0.5);
	}

	.nav-item.active .nav-active-indicator {
		width: 40%;
	}

	.nav-item.active .mobile-icon-container {
		color: var(--brand-color) !important;
		transform: translateY(-2px);
	}

	.nav-item.active span.mobile-label {
		color: white !important;
	}

	.nav-item {
		color: #71717a !important;
	}

	.nav-item:hover {
		color: #d4d4d8 !important;
	}
}

.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.cat-btn {
	border: 1px solid transparent;
	transition: all 0.2s var(--ease-custom);
}

.cat-btn:hover:not(.active-cat) {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.05);
	color: white;
}

.active-cat {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.1);
	color: white !important;
	font-weight: 600;
}

.form-input {
	width: 100%;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 12px 16px;
	color: white;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
}

.form-input:focus {
	border-color: var(--brand-color);
	outline: none;
	background: rgba(255, 255, 255, 0.05);
}

select.form-input, select#submit-cat-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.1em;
	padding-right: 3rem;
	color: #71717a; /* Zinc-500 for placeholder */
}

select#submit-cat-select:focus,
select#submit-cat-select:not(:invalid) {
	color: white;
}

select option {
	background-color: #0A0A0A;
	color: white;
}

.safe-area-pb {
	padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
	.mobile-footer-spacer {
		padding-bottom: calc(90px + env(safe-area-inset-bottom));
	}
}

.snap-x-mandatory {
	scroll-snap-type: x mandatory;
}

.snap-center {
	scroll-snap-align: center;
}