/**
 * Shared styles for the "separate-" OSST personality quizzes (Founding Father,
 * Citizenship, etc). One quiz look-and-feel, reused across quiz templates.
 *
 * Asset URLs below are relative to this file's location
 * (page-templates/quiz/quiz.css), two levels up to the theme root.
 */

@font-face { font-family: 'Domaine'; src: url('../../components/osst/assets/fonts/TestDomaineText-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Domaine'; src: url('../../components/osst/assets/fonts/TestDomaineText-Black.otf') format('opentype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Domaine'; src: url('../../components/osst/assets/fonts/TestDomaineText-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Domaine'; src: url('../../components/osst/assets/fonts/TestDomaineText-RegularItalic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('../../components/osst/assets/fonts/CooperHewitt-Book.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('../../components/osst/assets/fonts/CooperHewitt-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('../../components/osst/assets/fonts/CooperHewitt-Semibold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('../../components/osst/assets/fonts/CooperHewitt-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('../../components/osst/assets/fonts/CooperHewitt-Heavy.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
	--osst-yellow: #FEBD3D;
	--osst-light-yellow: #F9DF9B;
	--osst-coffee: #5D5139;
	--osst-cream: #FFF6E5;
	--afp-blue: #0C1F2C;
	--panel-blue: #1A2430;
}

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

body {
	font-family: 'Cooper Hewitt', sans-serif;
	background: var(--afp-blue);
	color: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

/* ===== BACK LINK ===== */
.back-link {
	--arrow-link-color: var(--osst-yellow);
	display: inline-flex;
	align-items: center;
	flex-direction: row-reverse;
	gap: 10px;
	text-decoration: none;
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 200;
	background: rgba(27,54,93,0.85);
	backdrop-filter: blur(6px);
	padding: 8px 16px 8px 10px;
	border-radius: 24px;
	border: 1px solid rgba(254,189,61,0.2);
	transition: background 0.15s, border-color 0.15s;
}
.back-link:hover { background: rgba(27,54,93,1); border-color: rgba(254,189,61,0.4); }
.back-link__text {
	color: var(--arrow-link-color);
	font-family: 'Cooper Hewitt', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding-top: 2px;
}
.back-link__icon svg { display: block; width: 16px; height: auto; }

/* ===== HERO ===== */
.hero {
	text-align: center;
	padding: 72px 20px 32px;
	background: linear-gradient(180deg, #0C1F2C 0%, #1A2430 100%);
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 130%, rgba(254,189,61,0.14) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-badge {
	display: inline-block;
	background: linear-gradient(135deg, #FEBD3D, #F9DF9B, #FEBD3D);
	color: var(--afp-blue);
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 6px 20px;
	border-radius: 20px;
	margin-bottom: 22px;
}
.hero h1 {
	font-family: 'Domaine', serif;
	font-size: 60px;
	font-weight: 900;
	line-height: 0.98;
	padding-bottom: 6px;
	background: linear-gradient(135deg, #FEBD3D, #F9DF9B, #FEBD3D);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero h1 .script { display: block; font-size: 34px; font-style: italic; letter-spacing: 1px; }
.hero-sub {
	font-family: 'Domaine', serif;
	font-style: italic;
	color: var(--osst-light-yellow);
	font-size: 18px;
	margin-top: 14px;
}
@media (max-width: 560px) {
	.hero { padding-top: 64px; }
	.hero h1 { font-size: 40px; }
	.hero h1 .script { font-size: 24px; }
	.hero-sub { font-size: 15px; }
}

/* Citizenship test hero has a smaller top gap than the shared default. */
.osst-citizenship-test-page .hero { padding-top: 24px; }

/* Citizenship test hero flips which line is prominent: the "Could You Pass
   the" lead-in is small, and the "United States Citizenship Test?" line
   (still rendered via the shared .script span) carries the big headline
   styling instead. */
.osst-citizenship-test-page .hero h1 {
	font-size: 34px;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 1px;
	line-height: 1.2;
}
.osst-citizenship-test-page .hero h1 .script {
	display: block;
	font-size: 60px;
	font-weight: 900;
	font-style: normal;
	letter-spacing: normal;
	line-height: 0.98;
}
@media (max-width: 560px) {
	.osst-citizenship-test-page .hero { padding-top: 24px; }
	.osst-citizenship-test-page .hero h1 { font-size: 24px; }
	.osst-citizenship-test-page .hero h1 .script { font-size: 40px; }
}

/* ===== QUIZ SHELL ===== */
.quiz {
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
	padding: 36px 20px 36px;
	flex: 1 0 auto;
}

/* Progress */
.quiz-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
}
.quiz-progress__bar {
	flex: 1;
	height: 6px;
	background: rgba(255,255,255,0.08);
	border-radius: 3px;
	overflow: hidden;
}
.quiz-progress__fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--osst-yellow), #F9DF9B);
	border-radius: 3px;
	transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.quiz-progress__text {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
	white-space: nowrap;
}

/* Question card */
.question {
	display: none;
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
	animation: fadeUp 0.35s ease both;
}
.question.is-active { display: block; }
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.question, .result { animation: none !important; }
	.quiz-progress__fill { transition: none; }
}
.question__text {
	font-family: 'Domaine', serif;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.15;
	color: #fff;
	margin-bottom: 24px;
}
@media (max-width: 560px) { .question__text { font-size: 24px; } }

.osst-citizenship-test-page .question__text { font-size: 24px; }

.answers { display: flex; flex-direction: column; gap: 12px; }
.answer {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	padding: 18px 20px;
	border-radius: 12px;
	border: 2px solid rgba(254,189,61,0.18);
	background: rgba(255,255,255,0.03);
	color: #fff;
	font-family: 'Cooper Hewitt', sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
@media (hover: hover) {
	.answer:hover { border-color: var(--osst-yellow); background: rgba(254,189,61,0.08); }
}
.answer:focus-visible { outline: none; border-color: var(--osst-yellow); background: rgba(254,189,61,0.08); }
.answer:active { transform: scale(0.99); }
.answer__marker {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--osst-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Domaine', serif;
	font-weight: 900;
	font-size: 13px;
	color: var(--osst-yellow);
}

/* ===== RESULT ===== */
.result { display: none; animation: fadeUp 0.4s ease both; text-align: center; }
.result.is-active { display: block; }
.result__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--osst-yellow);
	margin-bottom: 18px;
}
.result__photo {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	border: 4px solid var(--osst-yellow);
	overflow: hidden;
	margin: 0 auto 20px;
	background: var(--osst-coffee);
	box-shadow: 0 0 44px rgba(254,189,61,0.28);
	display: flex;
	align-items: center;
	justify-content: center;
}
.result__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result__score-text {
	font-family: 'Domaine', serif;
	font-weight: 900;
	font-size: 40px;
	color: var(--osst-yellow);
}
.result__name {
	font-family: 'Domaine', serif;
	font-size: 44px;
	font-weight: 900;
	line-height: 1.15;
	padding-bottom: 4px;
	background: linear-gradient(135deg, #FEBD3D, #F9DF9B);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.result__epithet {
	font-family: 'Domaine', serif;
	font-style: italic;
	font-size: 20px;
	color: var(--osst-light-yellow);
	margin-top: 8px;
}
.result__traits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 20px 0;
}
.result__trait {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--osst-yellow);
	border: 1px solid rgba(254,189,61,0.35);
	border-radius: 20px;
	padding: 6px 14px;
}
.result__blurb {
	max-width: 560px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255,255,255,0.85);
}
.result__quote {
	max-width: 520px;
	margin: 28px auto 0;
	padding: 18px 22px;
	text-align: left;
	font-family: 'Domaine', serif;
	font-style: italic;
	font-size: 18px;
	line-height: 1.5;
	color: var(--osst-light-yellow);
	background: rgba(255,255,255,0.03);
	border-left: 3px solid var(--osst-yellow);
	border-radius: 0 10px 10px 0;
}
.result__quote cite {
	display: block;
	margin-top: 10px;
	font-family: 'Cooper Hewitt', sans-serif;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
}

/* Per-question review list (right/wrong quizzes, e.g. the citizenship test) */
.result__review {
	max-width: 560px;
	margin: 32px auto 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}
.review-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
}
.review-item__icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.review-item__icon svg { width: 14px; height: 14px; display: block; }
.review-item.is-correct .review-item__icon { color: #3DDC84; background: rgba(61,220,132,0.14); }
.review-item.is-incorrect .review-item__icon { color: #FF6B6B; background: rgba(255,107,107,0.14); }
.review-item__question {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
	margin-bottom: 4px;
}
.review-item__answer {
	font-size: 13px;
	color: rgba(255,255,255,0.65);
}
.review-item__correct {
	font-size: 13px;
	color: #3DDC84;
	margin-top: 2px;
}
@media (max-width: 560px) {
	.result__name { font-size: 34px; }
	.result__epithet { font-size: 17px; }
	.result__quote { font-size: 16px; }
}

/* Share + actions */
.result__share {
	margin: 32px auto 0;
	max-width: 520px;
	padding-top: 28px;
	border-top: 1px solid rgba(254,189,61,0.15);
}
.result__share-label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	margin-bottom: 16px;
}
.social-list {
	display: flex;
	gap: 16px;
	list-style: none;
	justify-content: center;
	margin: 0 0 20px;
	padding: 0;
}
.social-list svg { display: block; height: 46px; width: 46px; }
.social-list a {
	--icon-color: var(--afp-blue);
	color: var(--osst-yellow);
	transition: color 0.15s, transform 0.15s;
	display: block;
}
.social-list a:hover { color: var(--osst-light-yellow); transform: scale(1.1); }

.share-copy {
	background: rgba(255,255,255,0.03);
	border-radius: 10px;
	overflow: hidden;
}
.share-copy__box {
	padding: 14px 16px;
	background: rgba(0,0,0,0.2);
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255,255,255,0.8);
	text-align: left;
}
.share-copy__btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: var(--osst-yellow);
	color: var(--afp-blue);
	border: none;
	font-family: 'Cooper Hewitt', sans-serif;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background 0.15s;
}
.share-copy__btn:hover { background: var(--osst-light-yellow); }

.result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 28px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Cooper Hewitt', sans-serif;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 14px 26px;
	border-radius: 26px;
	cursor: pointer;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--osst-yellow); color: var(--afp-blue); }
.btn--primary:hover { background: var(--osst-light-yellow); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.btn--ghost:hover { border-color: var(--osst-yellow); color: var(--osst-yellow); }

.copy-toast {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--osst-yellow);
	color: var(--panel-blue);
	font-weight: 800;
	padding: 10px 24px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
	z-index: 9999;
}
.copy-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== OSST FOOTER ===== */
.osst-footer { padding: 64px 0; color: #fff; position: relative; overflow: hidden; background: var(--panel-blue); flex-shrink: 0; }
.osst-footer a { color: #fff; }
.osst-footer::after {
	content: "";
	background-image: url('../../components/osst/assets/images/mount-rushmore.png');
	background-position: center center;
	background-size: cover;
	opacity: .1;
	position: absolute;
	inset: 0;
}
.osst-footer > * { position: relative; z-index: 1; }
.osst-footer .container { margin: 0 auto; max-width: 1288px; padding: 0 44px; }
.osst-footer__inner { display: flex; flex-direction: column; }
.osst-footer__branding { display: flex; justify-content: center; }
.osst-footer__branding svg { max-width: 371px; width: 100%; height: auto; }
.osst-footer__logo {
	--osst-logo-color: #fff;
	align-self: center;
	display: inline-flex;
	text-align: center;
	border-top: 3px solid #fff;
	padding-top: 18px;
}
.osst-footer__logo svg { aspect-ratio: 289 / 29; max-width: 289px; width: 100%; }
.osst-footer__links {
	display: flex;
	font-family: 'Cooper Hewitt', sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: .36px;
	gap: 30px;
	justify-content: center;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	text-transform: uppercase;
}
.osst-footer__links a { text-decoration: none; }
.osst-footer__links a:hover, .osst-footer__links a:focus { text-decoration: underline; }
@media (max-width: 480px) {
	.osst-footer { padding: 40px 0; }
	.osst-footer .container { padding: 0 15px; }
}
