/* =============================================================================
   Hub home — shared design tokens with /sounds/ (navy + teal + serif)
   The background image is intentionally kept (Kamille's signature).
   ============================================================================= */

:root {
	--bg:          #03081e;
	--surface:     #0c1b35;
	--surface-2:   #122544;
	--surface-3:   #1a3258;
	--border:      rgba(255, 255, 255, 0.08);
	--border-hi:   rgba(34, 180, 150, 0.32);

	--text:        #e0e0e0;
	--text-strong: #ffffff;
	--text-muted:  #93a3b8;

	--accent:      #22b496;
	--accent-hi:   #2dc7a7;
	--accent-glow: rgba(34, 180, 150, 0.18);

	--gold:        #ffc107;
	--success:     #198754;
	--danger:      #dc3545;
	--warning:     #ffc107;

	/* Ammo type colors (used in Sounds — kept here for cross-page consistency) */
	--ammo-compact: #4dabf7;
	--ammo-medium:  #ff922b;
	--ammo-long:    #fa5252;
	--ammo-shotgun: #51cf66;
	--ammo-special: #cc5de8;

	--radius-sm:   4px;
	--radius:      8px;
	--radius-lg:   12px;

	--font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--shadow:      0 12px 30px rgba(0, 0, 0, 0.55);
}

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

.hide { display: none; }

/* ---------- Accessibility helpers (shared with sections) ---------- */
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 9999;
	padding: 0.5rem 0.85rem;
	background: var(--accent);
	color: #03081e;
	font-weight: 700;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: top 0.15s ease;
}
.skip-link:focus {
	top: 8px;
	outline: 2px solid var(--text-strong);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Body + signature background ---------- */
html, body { min-height: 100vh; }

body {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background-color: var(--bg);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 4rem 1.25rem 3rem;
}

/* Kamille's signature blurred background image — preserved. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url('./images/Kamille-bg.jpg');
	background-size: cover;
	background-position: center;
	filter: blur(8px) saturate(0.85);
	transform: scale(1.05); /* hide blur edges */
	z-index: -2;
}

/* Subtle dark veil on top of the background to keep contrast. */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(3, 8, 30, 0.55) 0%,
		rgba(3, 8, 30, 0.70) 60%,
		rgba(3, 8, 30, 0.85) 100%
	);
	z-index: -1;
}

/* ---------- Main hub card ---------- */
.container {
	position: relative;
	z-index: 1;
	text-align: center;
	background-color: rgba(12, 27, 53, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid var(--border);
	padding: 2.25rem 2rem 2.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
	max-width: 620px;
}

.profile-pic {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	margin-bottom: 1rem;
	border: 2px solid var(--accent);
	box-shadow: 0 0 0 4px rgba(34, 180, 150, 0.12);
	object-fit: cover;
}

h1 {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--text-strong);
	margin-bottom: 0.5rem;
}

.description {
	font-size: 1rem;
	color: var(--text-muted);
	margin-bottom: 1.75rem;
	line-height: 1.5;
}

/* ---------- Link cards ---------- */
.links {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.link-container {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.link-container:hover,
.link-container:focus-within {
	background-color: var(--surface-2);
	border-color: var(--border-hi);
	transform: translateY(-1px);
}

.link-container i {
	font-size: 1.5rem;
	flex-shrink: 0;
	width: 36px;
	text-align: center;
	transition: transform 0.18s ease;
}

.link-container:hover i,
.link-container:focus-within i {
	transform: scale(1.08);
}

.link-container a {
	text-decoration: none;
	color: var(--text);
	flex-grow: 1;
	text-align: left;
	font-weight: 500;
	transition: color 0.18s ease;
	outline: none;
}

.link-container:hover a,
.link-container:focus-within a {
	color: var(--text-strong);
}

.link-container a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--accent);
}

/* ---------- Language switcher (top-right of the hub card) ---------- */
.language-switcher {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
}

.language-switcher .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.65rem;
	background-color: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 0.82rem;
	border-radius: var(--radius);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.language-switcher .dropdown-toggle::after { display: none; }
.language-switcher .dropdown-toggle:hover {
	border-color: var(--border-hi);
	background-color: var(--surface-3);
}
.language-switcher .dropdown-toggle:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.language-switcher .dropdown-menu {
	background-color: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 0.35rem;
	min-width: 7rem;
}

.language-switcher .dropdown-item {
	color: var(--text);
	padding: 0.4rem 0.65rem;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
	background-color: var(--surface-3);
	color: var(--text-strong);
}
.language-switcher .dropdown-item.active {
	background: transparent;
	color: var(--accent);
	font-weight: 600;
}
.language-switcher .dropdown-toggle:focus-visible,
.language-switcher .dropdown-item:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
	body { padding: 2rem 1rem; }
	.container { padding: 2rem 1.25rem 2.25rem; }
	h1 { font-size: 1.65rem; }
	.profile-pic { width: 92px; height: 92px; }
}
