/*
Theme Name: quizapp
Author: Kvizoman.com
Author URI: https://kvizoman.com
Version: 1.1
Description: Custom tema za kviz aplikaciju.
Text Domain: quizapp
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


:root {
	--bg-color: #0b1120;
	/* Još tamnija za bolji kontrast */
	--primary: #8b5cf6;
	/* Moderna ljubičasta */
	--secondary: #22d3ee;
	/* Svjetlija cijan */
	--glass-bg: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.08);
	--glass-heavy: rgba(15, 23, 42, 0.8);
	/* Za Meni */
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Outfit', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--bg-color);
	color: var(--text-main);
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

/* Pozadinski svijetleći krugovi */
.bg-orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(100px);
	z-index: -1;
	opacity: 0.4;
}

.orb-1 {
	width: 350px;
	height: 350px;
	background: var(--primary);
	top: -100px;
	left: -100px;
}

.orb-2 {
	width: 300px;
	height: 300px;
	background: var(--secondary);
	bottom: 100px;
	right: -50px;
}

.app-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 20px 110px 20px;
}

/* --- HEADER --- */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-top: 10px;
	position: relative;
	z-index: 10;
}

/* CSS Logo */
.logo-container {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.logo-icon i {
	color: white;
	font-size: 1.2rem;
	transform: rotate(-10deg);
}

.logo-text {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	background: linear-gradient(90deg, #fff, #a78bfa);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.logo-text span {
	font-weight: 300;
	opacity: 0.8;
}

/* Hamburger Meni Button */
.menu-trigger {
	width: 45px;
	height: 45px;
	border-radius: 14px;
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: var(--text-main);
	cursor: pointer;
	transition: all 0.3s var(--ease);
}

.menu-trigger:hover {
	border-color: var(--secondary);
	transform: scale(1.05);
}

/* --- SIDE MENU (DRAWER) --- */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: rgba(15, 23, 42, 0.9); /* Duboka tamna podloga */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 10px;
}

.menu-title h3 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.menu-title span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
}

.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.menu-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Linkovi kao kartice */
.menu-link-item {
    display: flex;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #818cf8; /* Svetlija ljubičasta/indigo */
    font-size: 18px;
    transition: 0.3s;
}

.link-title {
    display: block;
    font-weight: 700;
    color: #f1f5f9;
    font-size: 16px;
}

.link-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* Hover efekat */
.menu-link-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.menu-link-item:hover .icon-box {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.menu-footer {
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    color: #475569;
}

.menu-footer a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 700;
}

/* Stanje kada je meni otvoren */
body.menu-open .side-menu-overlay {
	opacity: 1;
	visibility: visible;
}

body.menu-open .side-menu {
	transform: translateX(0);
}

.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 50px;
}

.menu-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.5rem;
	cursor: pointer;
}

.menu-links {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.menu-link-item {
	text-decoration: none;
	color: var(--text-main);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px;
	border-radius: 12px;
	transition: background 0.2s;
}

.menu-link-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.menu-link-item i {
	width: 24px;
	color: var(--primary);
	text-align: center;
}

.menu-footer {
	margin-top: auto;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.8rem;
}

/* --- GLASS CARD GENERAL --- */
.glass-card {
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	padding: 20px;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.glass-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.15);
}

/* --- HERO GAME --- */
.hero-game {
	position: relative;
	overflow: hidden;
	margin-bottom: 25px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
	border-color: rgba(139, 92, 246, 0.3);
}

.hero-tag {
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 15px;
	color: white;
}

.hero-game h1 {
	font-size: 2.2rem;
	margin-bottom: 10px;
	line-height: 1.1;
}

.hero-game p {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 25px;
	max-width: 400px;
}

.play-btn {
	background: #fff;
	color: #000;
	border: none;
	padding: 14px 28px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 1rem;
	display: inline-block;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: transform 0.2s;
}

.play-btn:active {
	transform: scale(0.97);
}

/* --- GAMES GRID --- */
.section-title {
	font-size: 1.3rem;
	margin-bottom: 18px;
	font-weight: 600;
	padding-left: 5px;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/* 2 kolone fiksno na mobile */
	gap: 15px;
}

.game-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 25px 15px;
	cursor: pointer;
}

.game-icon {
	width: 55px;
	height: 55px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 15px;
	border: 1px solid var(--glass-border);
	margin-left: auto;
	margin-right: auto;
}

.game-item h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.game-item p {
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* --- BOTTOM BAR --- */
.bottom-bar {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 450px;
	background: rgba(10, 15, 28, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	display: flex;
	justify-content: space-around;
	padding: 12px;
	z-index: 900;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.3s;
	width: 22%;
	padding: 8px 0;
}

.nav-item i {
	font-size: 1.3rem;
}

.nav-item span {
	font-size: 0.7rem;
	font-weight: 500;
}

.nav-item.active {
	color: var(--secondary);
	position: relative;
}

.nav-item.active::after {
	content: '';
	position: absolute;
	top: -12px;
	width: 30px;
	height: 2px;
	background: var(--secondary);
	border-radius: 2px;
	box-shadow: 0 0 10px var(--secondary);
}

/* --- DESKTOP PRILAGOĐAVANJA --- */
@media (min-width: 768px) {
	.app-container {
		padding-top: 30px;
	}

	header {
		margin-bottom: 40px;
	}

	.games-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 20px;
	}

	.bottom-bar {
		bottom: 30px;
	}

	.hero-game {
		padding: 50px;
	}

	.hero-game h1 {
		font-size: 3rem;
	}
}