/**
 * MSA Link Hub – "Stage Glow" Frontend
 *
 * Design: Performing arts school link page.
 * Warm gradient header, glass cards, hero featured links,
 * thumbnail-enhanced regular links, glowing social icons.
 *
 * Brand: #ff9933 (Orange), #9933ff (Lila), #1a1a2e (Dark)
 */

/* ─── Variables ─── */
:root {
	--lh-orange: #ff9933;
	--lh-orange-light: #ffb366;
	--lh-orange-dark: #e6871f;
	--lh-lila: #9933ff;
	--lh-lila-light: #b366ff;
	--lh-dark: #1a1a2e;
	--lh-dark-soft: #16213e;
	--lh-card-bg: rgba(255, 255, 255, 0.06);
	--lh-card-border: rgba(255, 255, 255, 0.1);
	--lh-card-hover: rgba(255, 255, 255, 0.12);
	--lh-text: #f0f0f0;
	--lh-text-muted: rgba(255, 255, 255, 0.6);
	--lh-radius: 16px;
	--lh-radius-sm: 12px;
	--lh-width: 440px;
	--lh-font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Container ─── */
.msa-lh {
	font-family: var(--lh-font);
	max-width: var(--lh-width);
	margin: 0 auto;
	min-height: 100vh;
	background: linear-gradient(to bottom, var(--lh-orange) 0px, var(--lh-dark) 420px);
	color: var(--lh-text);
	position: relative;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Ambient glow behind container */
.msa-lh::before {
	content: '';
	position: fixed;
	top: -40%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255,153,51,.15) 0%, rgba(153,51,255,.08) 50%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

/* ─── Header ─── */
.msa-lh-header {
	position: relative;
	padding: 48px 24px 32px;
	text-align: center;
	overflow: hidden;
	z-index: 1;
	background: linear-gradient(145deg, var(--lh-orange) 0%, var(--lh-lila) 100%);
}

/* Subtle light sweep */
.msa-lh-header__glow {
	position: absolute;
	top: -30%;
	left: -20%;
	width: 70%;
	height: 120%;
	background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
	z-index: 0;
	pointer-events: none;
}

/* Noise texture overlay */
.msa-lh-header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
}

.msa-lh-header__logo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
	animation: lh-orbit 6s ease-in-out infinite;
}

@keyframes lh-orbit {
	0%   { transform: translate(0, 0); }
	25%  { transform: translate(3px, -5px); }
	50%  { transform: translate(0, -3px); }
	75%  { transform: translate(-3px, -5px); }
	100% { transform: translate(0, 0); }
}

.msa-lh-header__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
	letter-spacing: -0.02em;
	color: #fff;
	position: relative;
	z-index: 1;
}

.msa-lh-header__sub {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 20px;
	letter-spacing: 0.04em;
	font-weight: 400;
	position: relative;
	z-index: 1;
}

/* ─── Social icons in header ─── */
.msa-lh-header__social {
	display: flex;
	justify-content: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}

.msa-lh-social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

.msa-lh-social:hover {
	color: #fff;
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.35);
}
.msa-lh-social--instagram:hover {
	background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	border-color: transparent;
	box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}
.msa-lh-social--youtube:hover {
	background: #FF0000;
	border-color: transparent;
	box-shadow: 0 4px 20px rgba(255, 0, 0, 0.35);
}
.msa-lh-social--tiktok:hover {
	background: #000;
	border-color: #25F4EE;
	box-shadow: 0 4px 20px rgba(37, 244, 238, 0.3);
}
.msa-lh-social--facebook:hover {
	background: #1877F2;
	border-color: transparent;
	box-shadow: 0 4px 20px rgba(24, 119, 242, 0.35);
}
.msa-lh-social--spotify:hover {
	background: #1DB954;
	border-color: transparent;
	box-shadow: 0 4px 20px rgba(29, 185, 84, 0.35);
}
.msa-lh-social--whatsapp:hover {
	background: #25D366;
	border-color: transparent;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* ─── Body ─── */
.msa-lh-body {
	padding: 10px 16px 0;
	position: relative;
	z-index: 1;
}

/* ─── Featured Link (hero card) ─── */
.msa-lh-featured {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--lh-radius);
	overflow: hidden;
	margin-bottom: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: all 0.3s cubic-bezier(.4,0,.2,1);
	animation: lh-slide-up 0.5s ease-out both;
}

.msa-lh-featured:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 153, 51, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.msa-lh-featured__img {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.msa-lh-featured__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.msa-lh-featured:hover .msa-lh-featured__img img {
	transform: scale(1.03);
}

/* Subtle gradient overlay on featured image */
.msa-lh-featured__img::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: linear-gradient(to top, rgba(26, 26, 46, 0.6), transparent);
	pointer-events: none;
}

.msa-lh-featured__body {
	padding: 16px 20px 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.msa-lh-featured__icon {
	font-size: 18px;
	color: var(--lh-orange-light);
}

.msa-lh-featured__title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	flex: 1;
	min-width: 0;
}

.msa-lh-featured__desc {
	width: 100%;
	font-size: 13px;
	color: var(--lh-text-muted);
	line-height: 1.4;
}

.msa-lh-featured__badge {
	background: var(--lh-orange);
	color: var(--lh-dark);
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Color variants for featured */
.msa-lh-featured--secondary:hover {
	border-color: rgba(153, 51, 255, 0.35);
}
.msa-lh-featured--secondary .msa-lh-featured__icon { color: var(--lh-lila-light); }
.msa-lh-featured--secondary .msa-lh-featured__badge { background: var(--lh-lila); color: #fff; }

/* ─── Regular Link ─── */
.msa-lh-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.msa-lh-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--lh-radius-sm);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-decoration: none;
	color: #fff;
	transition: all 0.25s cubic-bezier(.4,0,.2,1);
	animation: lh-slide-up 0.5s ease-out both;
}

/* Stagger animation */
.msa-lh-link:nth-child(1) { animation-delay: 0.05s; }
.msa-lh-link:nth-child(2) { animation-delay: 0.1s; }
.msa-lh-link:nth-child(3) { animation-delay: 0.15s; }
.msa-lh-link:nth-child(4) { animation-delay: 0.2s; }
.msa-lh-link:nth-child(5) { animation-delay: 0.25s; }
.msa-lh-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes lh-slide-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.msa-lh-link:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 153, 51, 0.3);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.msa-lh-link:active {
	transform: scale(0.985);
}

/* Thumbnail */
.msa-lh-link__thumb {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

/* Icon (when no thumbnail) */
.msa-lh-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	font-size: 20px;
	flex-shrink: 0;
	color: #fff;
	background: var(--lh-orange);
}

/* MSA logo as icon */
.msa-lh-link__logo-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.msa-lh-link__text {
	flex: 1;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	min-width: 0;
	transition: color 0.25s cubic-bezier(.4,0,.2,1);
}

.msa-lh-link__badge {
	background: var(--lh-orange);
	color: var(--lh-dark);
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}

.msa-lh-link__arrow {
	font-size: 14px;
	color: var(--lh-text-muted);
	flex-shrink: 0;
	transition: transform 0.2s;
}

.msa-lh-link:hover .msa-lh-link__arrow {
	transform: translateX(3px);
	color: var(--lh-orange);
}

/* ─── Link color variants ─── */

/* Primary (orange) – default */
.msa-lh-link--primary .msa-lh-link__icon {
	color: #fff;
	background: var(--lh-orange);
}
.msa-lh-link--primary:hover {
	border-color: rgba(255, 153, 51, 0.35);
}
.msa-lh-link--primary:hover .msa-lh-link__text {
	color: var(--lh-orange-light);
}

/* Secondary (lila) */
.msa-lh-link--secondary .msa-lh-link__icon {
	color: #fff;
	background: var(--lh-lila);
}
.msa-lh-link--secondary:hover {
	border-color: rgba(153, 51, 255, 0.35);
}
.msa-lh-link--secondary:hover .msa-lh-link__text {
	color: var(--lh-lila-light);
}
.msa-lh-link--secondary .msa-lh-link__badge {
	background: var(--lh-lila);
	color: #fff;
}
.msa-lh-link--secondary:hover .msa-lh-link__arrow {
	color: var(--lh-lila-light);
}

/* Light */
.msa-lh-link--light {
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(0, 0, 0, 0.06);
	color: var(--lh-dark);
}
.msa-lh-link--light .msa-lh-link__icon {
	color: var(--lh-orange-dark);
	background: rgba(255, 153, 51, 0.12);
}
.msa-lh-link--light .msa-lh-link__arrow { color: rgba(0,0,0,.3); }
.msa-lh-link--light:hover {
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.msa-lh-link--light:hover .msa-lh-link__arrow {
	color: var(--lh-orange-dark);
}
.msa-lh-link--light:hover .msa-lh-link__text {
	color: var(--lh-orange-dark);
}

/* ─── Footer ─── */
.msa-lh-footer {
	text-align: center;
	padding: 32px 16px 24px;
	font-size: 12px;
	color: var(--lh-text-muted);
	position: relative;
	z-index: 1;
}
.msa-lh-footer__sep {
	margin: 0 6px;
	opacity: 0.4;
}
.msa-lh-footer__link {
	color: var(--lh-text-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.msa-lh-footer__link:hover {
	color: var(--lh-orange-light);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
	.msa-lh {
		max-width: 100%;
		border-radius: 0;
	}
	.msa-lh-header { padding: 40px 20px 28px; }
	.msa-lh-header__logo { width: 72px; height: 72px; }
	.msa-lh-header__title { font-size: 20px; }
	.msa-lh-body { padding: 10px 12px 0; }
	.msa-lh-link { padding: 12px 14px; gap: 12px; }
	.msa-lh-link__thumb { width: 42px; height: 42px; }
	.msa-lh-link__icon { width: 38px; height: 38px; font-size: 18px; }
}

/* ─── Prefers reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
	.msa-lh-header__logo { animation: none; }
	.msa-lh-link, .msa-lh-featured { animation: none; }
	.msa-lh-link:hover, .msa-lh-featured:hover { transform: none; }
	.msa-lh-link__text { transition: none; }
}
