/* Studietesten CSS */
/* V2.0 2026_01_29 - Modernisert design */

/* ==================== */
/* CSS VARIABLER        */
/* ==================== */
:root {
	/* HVO Fargeprofil */
	--hvo-green: #00594E;
	--hvo-green-dark: #003D35;
	--hvo-green-light: #007A6A;
	--hvo-orange: #FFA300;
	--hvo-orange-dark: #E69200;
	--hvo-pink: #D0006F;
	
	/* Nøytrale farger */
	--white: #FFFFFF;
	--light-gray: #f6f6f6;
	--medium-gray: #e0e0e0;
	--dark-gray: #212121;
	--text-muted: #6c757d;
	
	/* Spacing */
	--spacing-xs: 8px;
	--spacing-sm: 15px;
	--spacing-md: 25px;
	--spacing-lg: 50px;
	--spacing-xl: 100px;
	
	/* Border radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-pill: 50px;
	
	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
	--shadow-orange: 0 4px 15px rgba(255, 163, 0, 0.4);
	--shadow-orange-hover: 0 6px 20px rgba(255, 163, 0, 0.6);
	
	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-normal: 0.3s ease;
	--transition-slow: 0.5s ease;
}

/* ==================== */
/* RESET & BASE         */
/* ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Rosario", sans-serif;
	font-weight: 400;
	color: var(--dark-gray);
	line-height: 1.6;
	min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "karmina", serif;
	font-weight: 700;
	font-style: normal;
	line-height: 1.2;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color var(--transition-fast);
}

a:hover {
	text-decoration: none;
}

/* ==================== */
/* BAKGRUNNER           */
/* ==================== */
.bg-hvo-green {
	background-color: var(--hvo-green);
}

.bg-hvo-gradient {
	background: linear-gradient(135deg, var(--hvo-green) 0%, var(--hvo-green-dark) 100%);
}

.bg-hvo-gradient-animated {
	background: linear-gradient(-45deg, var(--hvo-green), var(--hvo-green-dark), var(--hvo-green-light), var(--hvo-green));
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

.bg-lys {
	background-color: var(--light-gray);
	color: var(--dark-gray);
}

.bg-mork {
	background-color: var(--dark-gray);
	color: var(--light-gray);
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* ==================== */
/* KNAPPER              */
/* ==================== */
.btn-hvo-primary {
	background: linear-gradient(135deg, var(--hvo-orange) 0%, var(--hvo-orange-dark) 100%);
	border: none;
	border-radius: var(--radius-pill);
	padding: 16px 40px;
	font-family: "Rosario", sans-serif;
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--white);
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-orange);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.btn-hvo-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-orange-hover);
	color: var(--white);
}

.btn-hvo-primary:active {
	transform: translateY(-1px);
}

.btn-hvo-secondary {
	background: transparent;
	border: 2px solid var(--white);
	border-radius: var(--radius-pill);
	padding: 14px 38px;
	font-family: "Rosario", sans-serif;
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--white);
	transition: all var(--transition-normal);
	cursor: pointer;
}

.btn-hvo-secondary:hover {
	background: var(--white);
	color: var(--hvo-green);
	transform: translateY(-2px);
}

/* Svarknapper for quiz */
.answer-btn {
	display: block;
	width: 100%;
	background: var(--white);
	border: 2px solid var(--medium-gray);
	border-radius: var(--radius-md);
	padding: 18px 24px;
	margin: 12px 0;
	font-family: "Rosario", sans-serif;
	font-weight: 500;
	font-size: 1.05rem;
	color: var(--dark-gray);
	text-align: left;
	transition: all var(--transition-fast);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.answer-btn::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 4px;
	background: var(--hvo-green);
	transform: scaleY(0);
	transition: transform var(--transition-fast);
}

.answer-btn:hover {
	border-color: var(--hvo-green);
	transform: translateX(8px);
	box-shadow: var(--shadow-sm);
}

.answer-btn:hover::before {
	transform: scaleY(1);
}

.answer-btn.selected {
	background: var(--hvo-green);
	color: var(--white);
	border-color: var(--hvo-green);
	transform: translateX(8px);
}

.answer-btn.selected::before {
	background: var(--hvo-orange);
	transform: scaleY(1);
}

/* ==================== */
/* CARDS & CONTAINERS   */
/* ==================== */
.card-glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: var(--shadow-lg);
}

.card-white {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-lg);
}

.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	background-color: #000;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-container-4x3 {
	position: relative;
	padding-bottom: 75%; /* 4:3 aspect ratio */
	background-color: #000;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.video-container-4x3 iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ==================== */
/* PROGRESS BAR         */
/* ==================== */
.progress-hvo {
	height: 10px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 5px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-hvo .progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--hvo-orange) 0%, var(--hvo-pink) 100%);
	border-radius: 5px;
	transition: width 0.4s ease-out;
	box-shadow: 0 0 10px rgba(255, 163, 0, 0.5);
}

.progress-text {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-top: var(--spacing-xs);
}

/* ==================== */
/* NAVIGASJON           */
/* ==================== */
.nav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--light-gray);
	color: var(--hvo-green);
	transition: all var(--transition-fast);
	border: 2px solid transparent;
}

.nav-arrow:hover {
	background: var(--hvo-green);
	color: var(--white);
	transform: scale(1.1);
}

.nav-arrow img {
	width: 24px;
	height: 24px;
	transition: filter var(--transition-fast);
}

.nav-arrow:hover img {
	filter: brightness(0) invert(1);
}

/* ==================== */
/* FOOTER               */
/* ==================== */
.footer-modern {
	background: var(--white);
	border-top: 1px solid var(--medium-gray);
	padding: var(--spacing-sm) 0;
}

.footer-modern a {
	color: var(--text-muted);
	font-size: 0.9rem;
	transition: color var(--transition-fast);
}

.footer-modern a:hover {
	color: var(--hvo-green);
}

/* ==================== */
/* TYPOGRAPHY           */
/* ==================== */
.text-hvo-green { color: var(--hvo-green); }
.text-hvo-orange { color: var(--hvo-orange); }
.text-hvo-pink { color: var(--hvo-pink); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

.display-hero {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.lead-text {
	font-size: 1.25rem;
	font-weight: 400;
	opacity: 0.9;
}

/* ==================== */
/* SPACING UTILITIES    */
/* ==================== */
.space-15 { width: 100%; height: var(--spacing-sm); }
.space-25 { width: 100%; height: var(--spacing-md); }
.space-50 { width: 100%; height: var(--spacing-lg); }
.space-100 { width: 100%; height: var(--spacing-xl); }

/* ==================== */
/* ANIMASJONER          */
/* ==================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
	animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
	animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
	animation: slideInRight 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Initial state for animated elements */
.animate-on-load {
	opacity: 0;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 768px) {
	.display-hero {
		font-size: 2.2rem;
	}
	
	.lead-text {
		font-size: 1.1rem;
	}
	
	.btn-hvo-primary,
	.btn-hvo-secondary {
		padding: 14px 30px;
		font-size: 1rem;
		width: 100%;
	}
	
	.answer-btn {
		padding: 16px 20px;
		font-size: 1rem;
	}
	
	.card-white {
		padding: var(--spacing-md);
	}
	
	.nav-arrow {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 576px) {
	.space-100 { height: var(--spacing-lg); }
	.space-50 { height: var(--spacing-md); }
}

/* ==================== */
/* QUIZ SPECIFIC        */
/* ==================== */
.quiz-container {
	max-width: 700px;
	margin: 0 auto;
}

.question-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-lg);
}

.quiz-container .question-card {
	margin-bottom: var(--spacing-md);
}

.question-text {
	font-family: "karmina", serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--dark-gray);
	margin-bottom: var(--spacing-md);
	line-height: 1.4;
}

.result-ready {
	text-align: center;
	padding: var(--spacing-lg);
}

.result-ready h3 {
	font-size: 1.8rem;
	color: var(--hvo-green);
	margin-bottom: var(--spacing-md);
}

/* ==================== */
/* QUIZ LAYOUT          */
/* ==================== */
.quiz-wrapper {
	max-width: 700px;
	margin: 0 auto;
}

.quiz-wrapper.has-funfact {
	max-width: 1000px;
}

.quiz-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

/* Desktop: Like brede og like høye */
@media (min-width: 992px) {
	.quiz-wrapper.has-funfact .quiz-cards {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}
	
	.quiz-wrapper.has-funfact .question-card {
		display: flex;
		flex-direction: column;
	}
	
	.quiz-wrapper.has-funfact .answers-container {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

/* ==================== */
/* FUNFACT CARD         */
/* ==================== */
.funfact-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
}

.funfact-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-md);
	margin-bottom: var(--spacing-md);
}

.funfact-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.funfact-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.funfact-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hvo-orange);
	font-family: "karmina", serif;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 12px;
}

.funfact-text {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--dark-gray);
	margin: 0;
}

/* Mobil: Kompakt layout, samme bredde */
@media (max-width: 991px) {
	.quiz-wrapper.has-funfact {
		max-width: 100%;
	}
	
	.quiz-wrapper.has-funfact .question-card {
		padding: var(--spacing-md);
	}
	
	.quiz-wrapper.has-funfact .question-text {
		font-size: 1.2rem;
		margin-bottom: var(--spacing-sm);
	}
	
	.quiz-wrapper.has-funfact .answer-btn {
		padding: 14px 18px;
		margin: 8px 0;
	}
	
	.funfact-card {
		padding: var(--spacing-md);
	}
	
	.funfact-image {
		aspect-ratio: 16 / 9;
		margin-bottom: var(--spacing-sm);
	}
	
	.funfact-label {
		font-size: 1rem;
		margin-bottom: 8px;
	}
	
	.funfact-text {
		font-size: 0.95rem;
		line-height: 1.6;
	}
}

/* ==================== */
/* UTILITY CLASSES      */
/* ==================== */
.min-vh-90 { min-height: 90vh; }
.gap-3 { gap: 1rem; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-pill { border-radius: var(--radius-pill); }
