/**
 * E-Potion Banners — Stylesheet
 *
 * Critical part is inlined in <head> by banners.php (zero CLS).
 * This file holds the rest, deferred by WP enqueue.
 *
 * Color tokens come from design-tokens.css (loaded earlier in the cascade).
 *
 * Total payload (this file): ~5 KB.
 */

/* === SHARED BUTTONS === */
.epotion-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	line-height: 1.2;
	letter-spacing: .2px;
	white-space: nowrap;
}
.epotion-btn:focus-visible {
	outline: 2px solid var(--ep-gold);
	outline-offset: 2px;
}
.epotion-btn-primary {
	background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-light));
	color: var(--ep-bg-deep-panel);
	border-color: var(--ep-gold);
}
.epotion-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(212, 175, 55, .3);
}
.epotion-btn-secondary {
	background: transparent;
	color: var(--ep-text-on-deep);
	border-color: var(--ep-bg-deep-border);
}
.epotion-btn-secondary:hover {
	background: rgba(255,255,255,.05);
	border-color: rgba(255,255,255,.2);
}
.epotion-btn-ghost {
	background: transparent;
	color: var(--ep-text-on-deep-muted);
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 12px 14px;
}
.epotion-btn-ghost:hover {
	color: var(--ep-text-on-deep);
}

/* === AGE BANNER === */
.epotion-age-overlay { animation: epotion-fade-in .3s ease; }
@keyframes epotion-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.epotion-age-modal { animation: epotion-pop-in .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes epotion-pop-in {
	from { opacity: 0; transform: scale(.95) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.epotion-age-logo { margin-bottom: 18px; }
.epotion-age-logo-text {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-light));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: .5px;
}
.epotion-age-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--ep-text-on-deep);
}
.epotion-age-subtitle {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ep-text-on-deep-muted);
	margin: 0 0 22px;
}
.epotion-age-question {
	font-size: 16px;
	font-weight: 600;
	color: var(--ep-text-on-deep);
	margin: 0 0 22px;
}
.epotion-age-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 22px;
}
.epotion-age-actions .epotion-btn {
	width: 100%;
	padding: 14px;
	font-size: 15px;
}
.epotion-age-legal {
	font-size: 11px;
	line-height: 1.5;
	color: var(--ep-text-on-deep-muted);
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--ep-bg-deep-border);
}
.epotion-age-legal a {
	color: var(--ep-gold);
	/* Underline required: link is inside paragraph text. Without it the link
	   relies on color alone to be distinguishable — WCAG 1.4.1 failure. */
	text-decoration: underline;
	text-decoration-color: rgba(212, 175, 55, 0.5);
	text-underline-offset: 2px;
}
.epotion-age-legal a:hover { text-decoration-color: var(--ep-gold); }

/* === GOODBYE SCREEN (under-18 redirect) === */
.epotion-age-screen[data-screen="goodbye"] {
	animation: epotion-fade-in .25s ease;
}
.epotion-goodbye-spinner {
	width: 48px;
	height: 48px;
	margin: 24px auto 18px;
	border-radius: 50%;
	border: 3px solid rgba(212, 175, 55, .15);
	border-top-color: var(--ep-gold);
	animation: epotion-spin .8s linear infinite;
}
@keyframes epotion-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.epotion-goodbye-spinner {
		animation-duration: 2s;
	}
}
.epotion-goodbye-redirect {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ep-text-on-deep-muted);
	margin: 0 0 16px;
}
.epotion-goodbye-redirect strong {
	color: var(--ep-text-on-deep);
	font-weight: 600;
}
.epotion-goodbye-redirect [data-countdown] {
	display: inline-block;
	min-width: 1ch;
	font-weight: 700;
	color: var(--ep-gold);
	font-variant-numeric: tabular-nums;
}

/* === COOKIE BANNER === */
.epotion-cookie-bar a {
	color: var(--ep-gold);
	/* Underline required: link is inside paragraph text (Politica de confidențialitate,
	   GDPR). Without it the link relies on color alone — WCAG 1.4.1 / Lighthouse
	   "Links rely on color" failure. Subtle opacity keeps it from looking heavy. */
	text-decoration: underline;
	text-decoration-color: rgba(212, 175, 55, 0.5);
	text-underline-offset: 2px;
}
.epotion-cookie-bar a:hover { text-decoration-color: var(--ep-gold); }
.epotion-cookie-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.epotion-cookie-text {
	flex: 1;
	min-width: 280px;
}
.epotion-cookie-title {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
	color: var(--ep-text-on-deep);
}
.epotion-cookie-text p {
	font-size: 13px;
	line-height: 1.5;
	color: var(--ep-text-on-deep-muted);
	margin: 0;
}
.epotion-cookie-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.epotion-cookie-actions .epotion-btn {
	padding: 11px 18px;
	font-size: 13px;
}

/* === SETTINGS MODAL === */
.epotion-settings-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(8,8,12,.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: epotion-fade-in .2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.epotion-settings-overlay[hidden] { display: none !important; }
.epotion-settings-panel {
	background: var(--ep-bg-deep-panel);
	border: 1px solid var(--ep-bg-deep-border);
	border-radius: 16px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	color: var(--ep-text-on-deep);
	box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
	animation: epotion-pop-in .25s cubic-bezier(.34, 1.56, .64, 1);
}
.epotion-settings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px 16px;
	border-bottom: 1px solid var(--ep-bg-deep-border);
}
.epotion-settings-header .epotion-settings-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--ep-text-on-deep);
}
.epotion-settings-close {
	background: transparent;
	border: none;
	color: var(--ep-text-on-deep-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 6px;
}
.epotion-settings-close:hover {
	background: rgba(255,255,255,.05);
	color: var(--ep-text-on-deep);
}
.epotion-settings-body {
	padding: 20px 24px;
	overflow-y: auto;
	flex: 1;
}
.epotion-settings-intro {
	font-size: 13px;
	line-height: 1.55;
	color: var(--ep-text-on-deep-muted);
	margin: 0 0 20px;
}
.epotion-cat {
	padding: 16px 0;
	border-bottom: 1px solid var(--ep-bg-deep-border);
}
.epotion-cat:last-child { border-bottom: none; }
.epotion-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}
.epotion-cat-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ep-text-on-deep);
}
.epotion-cat-required {
	font-size: 11px;
	color: var(--ep-gold);
	font-weight: 500;
	background: rgba(212, 175, 55, .12);
	padding: 2px 8px;
	border-radius: 10px;
	border: 1px solid rgba(212, 175, 55, .3);
}
.epotion-cat-desc {
	font-size: 12px;
	line-height: 1.5;
	color: var(--ep-text-on-deep-muted);
	margin: 0;
	padding-right: 60px;
}

/* Toggle switch */
.epotion-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
}
.epotion-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.epotion-toggle-track {
	position: absolute;
	inset: 0;
	background: var(--ep-bg-deep-border-soft);
	border-radius: 24px;
	transition: background .2s;
}
.epotion-toggle-track::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}
.epotion-toggle input:checked + .epotion-toggle-track {
	background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-light));
}
.epotion-toggle input:checked + .epotion-toggle-track::before {
	transform: translateX(20px);
}
.epotion-toggle-locked { cursor: not-allowed; opacity: .85; }
.epotion-toggle-locked .epotion-toggle-track {
	background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-light));
	opacity: .7;
}
.epotion-toggle-locked .epotion-toggle-track::before {
	transform: translateX(20px);
}

.epotion-settings-footer {
	display: flex;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid var(--ep-bg-deep-border);
	background: rgba(0,0,0,.2);
	border-radius: 0 0 16px 16px;
}
.epotion-settings-footer .epotion-btn {
	flex: 1;
}

/* Footer "Cookies" link to reopen settings */
.epotion-cookies-link {
	cursor: pointer;
	text-decoration: underline;
}

/* === MOBILE === */
@media (max-width: 720px) {
	.epotion-age-modal { padding: 24px 20px; }
	.epotion-age-title { font-size: 20px; }
	.epotion-cookie-inner {
		flex-direction: column;
		align-items: stretch;
	}
	.epotion-cookie-actions {
		justify-content: stretch;
		flex-direction: column;
	}
	.epotion-cookie-actions .epotion-btn { width: 100%; }
	.epotion-settings-panel { max-height: 95vh; }
	.epotion-cat-desc { padding-right: 0; }
}