/**
 * The 3 Closets — Editorial Header & Footer
 *
 * Replicates the React SPA Header.tsx / Footer design
 * for non-SPA pages rendered by Astra.
 */

/* ══════════════════════════════════════════════
   HEADER BAR
   ══════════════════════════════════════════════ */
.the3c-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	position: relative;
	z-index: 60;
}

/* Brand — fully aligned with SPA Header.tsx .header-brand */
.the3c-brand {
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--the3c-fg);
	text-decoration: none;
	line-height: 1;
}

.the3c-brand:hover {
	opacity: 0.7;
	color: var(--the3c-fg);
}

/* Header line — 技術棧與首頁 SPA 完全一致
   首頁 React hr class: `animate-divider m-0 w-full border-0 border-t border-black`
   動畫由 GSAP + ScrollTrigger 驅動（見 header.js），此處僅定義 initial state
   scope 於 hr 避免污染 Elementor / WooCommerce 其他 utility 名稱 */
hr.animate-divider {
	margin: 0;                       /* .m-0 */
	width: 100%;                     /* .w-full */
	border: 0;                       /* .border-0 */
	border-top: 1px solid #000;      /* .border-t + .border-black */
	background-color: transparent;   /* 強制透明，覆蓋任何 theme 預設 */
	height: 0;                       /* Tailwind preflight: hr { height: 0 } */
	color: inherit;                  /* Tailwind preflight: hr { color: inherit } */
	transform-origin: left center;   /* GSAP from 動畫基準 */
	transform: scaleX(0);            /* 初始狀態，避免 FOUC */
}

/* Hamburger button — NO Astra default hover/focus/active styles */
.the3c-menu-btn {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	cursor: pointer;
	padding: 0;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.the3c-menu-btn:hover,
.the3c-menu-btn:focus,
.the3c-menu-btn:focus-visible,
.the3c-menu-btn:active,
.the3c-menu-btn:focus-within {
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	opacity: 1;
	color: inherit;
}

.the3c-menu-btn:focus-visible {
	outline: 1px solid var(--the3c-fg) !important;
	outline-offset: 6px !important;
}

.the3c-menu-line {
	display: block;
	width: 28px;
	height: 1.5px;
	background-color: var(--the3c-fg);
	transform-origin: center;
	transition: none;
}

/* Lines must NOT change color on any state */
.the3c-menu-btn:hover .the3c-menu-line,
.the3c-menu-btn:focus .the3c-menu-line,
.the3c-menu-btn:active .the3c-menu-line {
	background-color: var(--the3c-fg);
}

/* Load animation — starts hidden, GSAP animates in */
.the3c-anim-down {
	opacity: 0;
	transform: translateY(-14px);
}

/* ══════════════════════════════════════════════
   OVERLAY
   ══════════════════════════════════════════════ */
.the3c-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	visibility: hidden;
	overflow: hidden;
}

.the3c-overlay.is-open {
	pointer-events: auto;
}

.the3c-overlay:not(.is-open) {
	pointer-events: none;
}

.the3c-overlay-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ══════════════════════════════════════════════
   NAV PANEL (right side)
   ══════════════════════════════════════════════ */
.the3c-nav-panel {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: hsl(30, 20%, 95%);
	will-change: transform;
}

@media (min-width: 768px) {
	.the3c-overlay-inner {
		flex-direction: row;
	}

	.the3c-nav-panel {
		width: 60%;
		margin-left: auto;
	}
}

/* Navigation */
.the3c-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 64px;
	padding-right: 4vw;
	gap: 2vh;
}

@media (min-width: 768px) {
	.the3c-nav {
		padding-left: 8vw;
	}
}

/* ══════════════════════════════════════════════
   NAV LINK
   ══════════════════════════════════════════════ */
.the3c-nav-link {
	position: relative;
	display: block;
	text-decoration: none;
	color: var(--the3c-fg);
	will-change: transform, opacity;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover underline */
.the3c-nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: currentColor;
	opacity: 0.25;
	transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.the3c-nav-link:hover {
	transform: translateX(12px);
	color: var(--the3c-fg);
	opacity: 1;
}

.the3c-nav-link:hover::after {
	width: 100%;
}

/* Number (01, 02, ...) */
.the3c-nav-number {
	position: absolute;
	left: -40px;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.15em;
	color: var(--the3c-fg);
	opacity: 0.78;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.the3c-nav-link:hover .the3c-nav-number {
	opacity: 1 !important;
	transform: translateY(-50%) translateX(0);
}

/* Title */
.the3c-nav-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 36px;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.the3c-nav-title {
		font-size: 28px;
	}
}

/* Category label */
.the3c-nav-category {
	display: block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.22em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--the3c-fg);
	opacity: 0.82;
	margin-top: 0.18rem;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.the3c-footer {
	width: 100vw;
	max-width: none;
	box-sizing: border-box;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding: 40px 24px;
	text-align: center;
	border-top: 0;
}

.the3c-footer-inner {
	max-width: 1120px;
	margin-inline: auto;
}

.the3c-footer-brand {
	margin: 0;
	color: var(--the3c-fg);
	font-family: var(--t3c-font-serif, 'Cormorant Garamond', Georgia, 'Times New Roman', serif);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: 0;
}

.the3c-footer-tagline {
	margin: 0 0 4px;
	color: var(--the3c-muted-fg);
	font-family: var(--t3c-font-serif, 'Cormorant Garamond', Georgia, 'Times New Roman', serif);
	font-size: 10px;
	font-weight: 300;
	line-height: 1.7;
	letter-spacing: 0;
}

.the3c-footer-english {
	margin: 0 0 16px;
	color: var(--the3c-muted-fg);
	font-family: var(--t3c-font-label, 'Cormorant Garamond', Georgia, serif);
	font-size: 10px;
	font-style: italic;
	letter-spacing: 0.06em;
}

.the3c-footer-podcast {
	position: relative;
	width: min(100%, 520px);
	box-sizing: border-box;
	margin: 0 auto 1.5rem;
	padding: 0;
	color: var(--the3c-bg);
	text-align: left;
	background: transparent;
	border: 0;
	overflow: visible;
}

.the3c-footer-podcast__stage {
	position: relative;
	min-height: 154px;
	max-width: 520px;
	box-sizing: border-box;
	margin-inline: auto;
	padding: 28px 104px 30px 18px;
	isolation: isolate;
}

.the3c-footer-podcast__band {
	position: absolute;
	top: 50%;
	left: 0;
	width: calc(100% - 70px);
	height: 124px;
	background: #3b170d;
	border-top: 1px solid rgba(245, 240, 235, 0.12);
	border-bottom: 1px solid rgba(245, 240, 235, 0.08);
	transform: translateY(-50%);
	z-index: 0;
}

.the3c-footer-podcast__copy {
	position: relative;
	z-index: 2;
	min-width: 0;
	max-width: 380px;
}

.the3c-footer-podcast__eyebrow {
	margin: 0 0 0.24rem;
	color: rgba(245, 240, 235, 0.62);
	font-family: var(--t3c-font-label, 'Cormorant Garamond', Georgia, serif);
	font-size: 8px;
	line-height: 1;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.the3c-footer-podcast__title {
	max-width: 380px;
	margin: 0;
	color: var(--the3c-bg);
	font-family: var(--t3c-font-serif, 'Cormorant Garamond', Georgia, 'Times New Roman', serif);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0;
	text-wrap: balance;
}

.the3c-footer-podcast__title span {
	display: block;
	font-size: clamp(24px, 2.35vw, 30px);
	line-height: 0.9;
	overflow-wrap: anywhere;
}

.the3c-footer-podcast__title span + span {
	margin-top: 0.04em;
	font-size: clamp(15px, 1.4vw, 18px);
	font-style: italic;
	font-weight: 400;
	line-height: 0.94;
}

.the3c-footer-podcast__device {
	position: absolute;
	top: 6px;
	right: 14px;
	z-index: 3;
	width: clamp(72px, 6.7vw, 86px);
	transform: rotate(13deg);
	transform-origin: 50% 78%;
}

.the3c-footer-podcast__phone {
	position: relative;
	aspect-ratio: 9 / 19;
	width: 100%;
	padding: 4px;
	background: #15120f;
	border: 2px solid rgba(245, 240, 235, 0.72);
	border-radius: 14px;
	box-shadow: 0 7px 16px rgba(39, 37, 36, 0.18);
	overflow: hidden;
}

.the3c-footer-podcast__phone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	filter: saturate(0.88) contrast(0.94);
}

.the3c-footer-podcast__notch {
	position: absolute;
	top: 7px;
	left: 50%;
	z-index: 2;
	width: 22px;
	height: 7px;
	background: #060504;
	border-radius: 999px;
	transform: translateX(-50%);
}

.the3c-footer-podcast__playerbar {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 14px 1fr;
	align-items: center;
	gap: 5px;
}

.the3c-footer-podcast__playerbar span {
	display: block;
	height: 1px;
	background: rgba(245, 240, 235, 0.64);
}

.the3c-footer-podcast__playerbar span:nth-child(2) {
	width: 14px;
	height: 14px;
	background: var(--the3c-bg);
	border-radius: 999px;
}

.the3c-podcast-platforms {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	color: inherit;
}

.the3c-podcast-platforms__label {
	display: inline-block;
	color: currentColor;
	font-family: var(--t3c-font-label, 'Cormorant Garamond', Georgia, serif);
	font-size: 10px;
	line-height: 1;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0.74;
}

.the3c-podcast-platforms__items {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.the3c-podcast-platform {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: currentColor;
	text-decoration: none;
	border: 1px solid currentColor;
	border-radius: 999px;
	transition: color 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.the3c-podcast-platform:hover,
.the3c-podcast-platform:focus-visible {
	color: var(--the3c-fg);
	background: var(--the3c-bg);
	opacity: 1;
}

.the3c-podcast-platform:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

.the3c-podcast-platform__icon {
	display: block;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

.the3c-podcast-platform__icon--spotify {
	mask-image: url('../icons/podcast/spotify.svg');
	-webkit-mask-image: url('../icons/podcast/spotify.svg');
}

.the3c-podcast-platform__icon--apple-podcasts {
	mask-image: url('../icons/podcast/apple-podcasts.svg');
	-webkit-mask-image: url('../icons/podcast/apple-podcasts.svg');
}

.the3c-podcast-platform__icon--kkbox {
	width: 24px;
	height: 15px;
	mask-image: url('../icons/podcast/kkbox.svg');
	-webkit-mask-image: url('../icons/podcast/kkbox.svg');
}

.the3c-podcast-platform__text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.the3c-footer-podcast .the3c-podcast-platforms {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.56rem;
	margin-top: 0.2rem;
	min-width: 0;
	color: var(--the3c-bg);
}

.the3c-footer-podcast .the3c-podcast-platforms__label {
	flex: 0 0 auto;
	font-size: 8px;
	letter-spacing: 0.18em;
	color: var(--the3c-bg);
	opacity: 1;
}

.the3c-footer-podcast .the3c-podcast-platforms__items {
	flex: 0 0 auto;
	gap: 0.34rem;
}

.the3c-footer-podcast .the3c-podcast-platform {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	color: var(--the3c-fg);
	background: var(--the3c-bg);
	border-color: var(--the3c-bg);
	transition:
		opacity 0.24s ease,
		transform 0.24s ease,
		border-color 0.24s ease;
}

.the3c-footer-podcast .the3c-podcast-platform:hover {
	color: var(--the3c-fg);
	background: var(--the3c-bg);
	opacity: 1;
	transform: translateY(-1px);
	border-color: rgba(245, 240, 235, 0.72);
	box-shadow: 0 0 0 1px rgba(59, 23, 13, 0.28) inset;
}

.the3c-footer-podcast .the3c-podcast-platform__icon {
	width: 15px;
	height: 15px;
}

.the3c-footer-podcast .the3c-podcast-platform__icon--kkbox {
	width: 20px;
	height: 12px;
}

.the3c-footer-nav,
.the3c-footer .t3c-social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin: 0 0 16px;
}

.the3c-footer-nav a,
.the3c-footer .t3c-social-links a {
	color: var(--the3c-fg);
	font-family: var(--t3c-font-label, 'Cormorant Garamond', Georgia, serif);
	font-size: 9px;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.25s ease;
}

.the3c-footer-nav a:hover,
.the3c-footer .t3c-social-links a:hover {
	opacity: 0.6;
}

.the3c-footer-text {
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--the3c-muted-fg);
	margin: 0;
}

@media (max-width: 720px) {
	.the3c-footer {
		padding: 40px 24px;
	}

	.the3c-footer-podcast {
		width: min(100%, 300px);
		margin-bottom: 1.45rem;
		overflow: visible;
	}

	.the3c-footer-podcast__stage {
		min-height: 148px;
		padding: 18px 66px 24px 14px;
	}

	.the3c-footer-podcast__band {
		top: 8px;
		left: -10px;
		width: calc(100% + 20px);
		height: 132px;
		transform: none;
	}

	.the3c-footer-podcast__copy {
		max-width: 100%;
	}

	.the3c-footer-podcast__title {
		max-width: 100%;
	}

	.the3c-footer-podcast__title span {
		font-size: clamp(21px, 6.5vw, 25px);
		line-height: 0.96;
	}

	.the3c-footer-podcast__title span + span {
		font-size: clamp(14px, 4.4vw, 17px);
		line-height: 1;
	}

	.the3c-footer-podcast .the3c-podcast-platforms {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.38rem;
		margin-top: 0.42rem;
	}

	.the3c-footer-podcast .the3c-podcast-platforms__label {
		width: auto;
		font-size: 7px;
		letter-spacing: 0.14em;
	}

	.the3c-footer-podcast .the3c-podcast-platforms__items {
		gap: 0.24rem;
	}

	.the3c-footer-podcast .the3c-podcast-platform {
		width: 23px;
		height: 23px;
		flex-basis: 23px;
	}

	.the3c-footer-podcast__device {
		top: 18px;
		right: 2px;
		width: min(64px, 20vw);
		transform: rotate(11deg);
	}
}

/* ══════════════════════════════════════════════
   HIDE ASTRA DEFAULT ELEMENTS
   ══════════════════════════════════════════════ */
#ast-scroll-top {
	display: none !important;
}
