/* =============================================================================
   Dateka – Hero Widget Styles
   Ultra-refined dark navy hero with ambient lighting, cinematic word-by-word title reveal,
   hyper-styled buttons & seamless glassmorphic side card.
   ============================================================================= */

/* ── HERO CONTAINER & ATMOSPHERE ── */
.dateka-hero {
	--dateka-hero-overlay-color: var(--dateka-navy, #002755);
	background-color: var(--dateka-navy, #002755);
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
	min-height: 480px;
	position: relative;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

/* Base dark overlay */
.dateka-hero__overlay {
	background-color: var(--dateka-hero-overlay-color);
	inset: 0;
	opacity: 0.55;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

/* Ambient Radial Glow Layers for rich visual depth */
.dateka-hero__glow {
	position: absolute;
	pointer-events: none;
	z-index: 1;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.6;
	animation: dateka-hero-ambient-pulse 10s ease-in-out infinite alternate;
}

.dateka-hero__glow--1 {
	top: -10%;
	left: -5%;
	width: 600px;
	height: 500px;
	background: radial-gradient(circle, rgba(201, 144, 72, 0.22) 0%, rgba(0, 39, 85, 0) 70%);
}

.dateka-hero__glow--2 {
	bottom: -15%;
	right: -5%;
	width: 700px;
	height: 600px;
	background: radial-gradient(circle, rgba(69, 97, 131, 0.35) 0%, rgba(74, 48, 109, 0.2) 50%, rgba(0, 39, 85, 0) 75%);
}

/* Delicate geometric grid background texture */
.dateka-hero__grid-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background-image: 
		linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}

@keyframes dateka-hero-ambient-pulse {
	0% {
		transform: scale(1) translate(0, 0);
		opacity: 0.5;
	}
	50% {
		transform: scale(1.08) translate(15px, -10px);
		opacity: 0.75;
	}
	100% {
		transform: scale(0.95) translate(-10px, 15px);
		opacity: 0.55;
	}
}

/* ── INNER LAYOUT ── */
.dateka-hero__inner {
	box-sizing: border-box;
	display: flex;
	min-height: inherit;
	padding: 76px 36px;
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
}

.dateka-hero__layout {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: 100%;
}

@media (min-width: 1025px) {
	.dateka-hero__layout {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ── LEFT CONTENT AREA & STAGGERED REVEALS ── */
.dateka-hero__content {
	max-width: 720px;
	width: 100%;
}

/* Title Styling */
.dateka-hero__title {
	color: var(--dateka-white, #ffffff);
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: clamp(2.1rem, 4vw, 3.65rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0;
}

/* Individual word stagger entrance animation */
.dateka-hero__word {
	display: inline-block;
	opacity: 0;
	transform: translateY(32px) rotate(1.5deg);
	filter: blur(8px);
	transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
	            filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform, opacity, filter;
}

.dateka-hero.is-visible .dateka-hero__word {
	opacity: 1;
	transform: translateY(0) rotate(0deg);
	filter: blur(0);
}

/* Fallback reveal if JS is slow or disabled */
.dateka-hero:not(.is-visible) .dateka-hero__word {
	animation: dateka-hero-word-fallback 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes dateka-hero-word-fallback {
	to {
		opacity: 1;
		transform: translateY(0) rotate(0deg);
		filter: blur(0);
	}
}

/* Gold Gradient Shimmer on Title Accent */
.dateka-hero__title .dateka-hero__title-accent,
.dateka-hero__title-accent {
	background: linear-gradient(135deg, #C99048 0%, #F5D77F 45%, #D4AF37 75%, #C99048 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent !important;
	display: inline-block;
	animation: dateka-gold-shimmer 6s ease-in-out infinite;
}

@keyframes dateka-gold-shimmer {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Description Text Entrance */
.dateka-hero__description {
	color: rgba(255, 255, 255, 0.88);
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-top: 24px;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
	            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.dateka-hero.is-visible .dateka-hero__description,
.dateka-hero:not(.is-visible) .dateka-hero__description {
	opacity: 1;
	transform: translateY(0);
}

.dateka-hero__description p {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
}

/* Action Buttons Container Entrance */
.dateka-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
	            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.dateka-hero.is-visible .dateka-hero__actions,
.dateka-hero:not(.is-visible) .dateka-hero__actions {
	opacity: 1;
	transform: translateY(0);
}

.dateka-hero__content--align-center .dateka-hero__actions {
	justify-content: center;
}

.dateka-hero__content--align-right .dateka-hero__actions {
	justify-content: flex-end;
}

/* ─────────────────────────────────────
   HYPER-STYLED BUTTONS
───────────────────────────────────── */
.dateka-hero__button {
	position: relative;
	align-items: center;
	border-radius: 10px;
	box-sizing: border-box;
	display: inline-flex;
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: 0.875rem;
	justify-content: center;
	line-height: 1.2;
	min-height: 56px;
	padding: 11px 24px;
	text-decoration: none !important;
	overflow: hidden;
	cursor: pointer;
	transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
	will-change: transform;
}

.dateka-hero__button-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.dateka-hero__button-icon {
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 220ms ease;
}

.dateka-hero__button-icon svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

.dateka-hero__button-icon i {
	font-size: 1.1em;
}

.dateka-hero__button-text-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.dateka-hero__button-text {
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.dateka-hero__button-subtext {
	font-size: 0.72rem;
	font-weight: 500;
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	margin-top: 3px;
	opacity: 0.85;
}

/* ── PRIMARY BUTTON (Gold Gradient Glow) ── */
a.dateka-hero__button--primary,
button.dateka-hero__button--primary,
.dateka-hero__button--primary {
	background: linear-gradient(135deg, #C99048 0%, #D4AF37 100%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff !important;
	box-shadow: 0 8px 25px rgba(201, 144, 72, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Light sheen pass effect on primary button */
.dateka-hero__button--primary::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -60%;
	width: 50%;
	height: 200%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transform: rotate(25deg);
	transition: left 600ms ease;
	pointer-events: none;
	z-index: 1;
}

a.dateka-hero__button--primary:hover::after,
.dateka-hero__button--primary:hover::after {
	left: 130%;
}

a.dateka-hero__button--primary:hover,
a.dateka-hero__button--primary:focus-visible,
.dateka-hero__button--primary:hover,
.dateka-hero__button--primary:focus-visible {
	background: linear-gradient(135deg, #d89f53 0%, #e0bd46 100%);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff !important;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 14px 35px rgba(201, 144, 72, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
}

a.dateka-hero__button--primary:hover .dateka-hero__button-icon,
.dateka-hero__button--primary:hover .dateka-hero__button-icon {
	transform: scale(1.15) rotate(-4deg);
}

/* ── SECONDARY BUTTON (Glassmorphism & Gold Border) ── */
a.dateka-hero__button--secondary,
button.dateka-hero__button--secondary,
.dateka-hero__button--secondary {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #ffffff !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

a.dateka-hero__button--secondary:hover,
a.dateka-hero__button--secondary:focus-visible,
.dateka-hero__button--secondary:hover,
.dateka-hero__button--secondary:focus-visible {
	background: rgba(201, 144, 72, 0.22);
	border-color: rgba(201, 144, 72, 0.65);
	color: #ffffff !important;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 30px rgba(201, 144, 72, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
}

a.dateka-hero__button--secondary:hover .dateka-hero__button-icon,
.dateka-hero__button--secondary:hover .dateka-hero__button-icon {
	transform: scale(1.15) rotate(4deg);
}

.dateka-hero__button:focus-visible {
	outline: 3px solid var(--dateka-gold-accent, #D4AF37);
	outline-offset: 3px;
}

/* Footer checkmark text */
.dateka-hero__footer-text {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s,
	            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s;
}

.dateka-hero.is-visible .dateka-hero__footer-text,
.dateka-hero:not(.is-visible) .dateka-hero__footer-text {
	opacity: 1;
	transform: translateY(0);
}

.dateka-hero__footer-text i,
.dateka-hero__footer-icon {
	color: var(--dateka-gold, #C99048);
	font-size: 0.95rem;
	filter: drop-shadow(0 0 6px rgba(201, 144, 72, 0.4));
}

/* ─────────────────────────────────────
   RIGHT SIDE CARD — SEAMLESS GLASSMORPHISM
   ("Fondue dans le Hero")
───────────────────────────────────── */
.dateka-hero__features-card {
	position: relative;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(0, 39, 85, 0.78) 100%);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(201, 144, 72, 0.32);
	border-radius: 20px;
	padding: 38px 34px;
	box-shadow: 0 28px 65px rgba(0, 0, 0, 0.42), 0 0 35px rgba(201, 144, 72, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.22);
	width: 100%;
	max-width: 450px;
	box-sizing: border-box;
	overflow: hidden;
	opacity: 0;
	transform: translateY(36px) scale(0.96);
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
	            transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
	            border-color 300ms ease, box-shadow 300ms ease;
	will-change: transform, opacity;
}

.dateka-hero.is-visible .dateka-hero__features-card,
.dateka-hero:not(.is-visible) .dateka-hero__features-card {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Decorative Gold Top Border Accent Line */
.dateka-hero__features-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--dateka-gold, #C99048) 0%, var(--dateka-gold-accent, #D4AF37) 65%, transparent 100%);
	box-shadow: 0 2px 10px rgba(201, 144, 72, 0.5);
}

.dateka-hero__features-card:hover {
	border-color: rgba(201, 144, 72, 0.6);
	box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), 0 0 45px rgba(201, 144, 72, 0.28);
	transform: translateY(-4px) scale(1.015);
}

.dateka-hero__features-title {
	color: #ffffff;
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 24px 0;
	padding-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dateka-hero__features-title::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--dateka-gold, #C99048);
	box-shadow: 0 0 12px var(--dateka-gold, #C99048);
}

.dateka-hero__features-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dateka-hero__features-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.03);
	transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.dateka-hero__features-item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(201, 144, 72, 0.35);
	transform: translateX(6px);
}

/* Circular Gold Icon Badge */
.dateka-hero__features-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(201, 144, 72, 0.18);
	border: 1px solid rgba(201, 144, 72, 0.38);
	color: var(--dateka-gold, #C99048);
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.dateka-hero__features-icon svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

.dateka-hero__features-item:hover .dateka-hero__features-icon {
	background: var(--dateka-gold, #C99048);
	color: #ffffff;
	transform: scale(1.12);
	box-shadow: 0 0 16px rgba(201, 144, 72, 0.5);
}

.dateka-hero__features-text {
	color: rgba(255, 255, 255, 0.95);
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

/* ─────────────────────────────────────
   RESPONSIVE — Tablet (≤ 1024px)
───────────────────────────────────── */
@media (max-width: 1024px) {
	.dateka-hero {
		min-height: 500px;
	}

	.dateka-hero__inner {
		padding: 64px 28px;
	}

	.dateka-hero__layout {
		align-items: center;
		gap: 40px;
	}

	.dateka-hero__features-card {
		max-width: 100%;
	}
}

/* ─────────────────────────────────────
   RESPONSIVE — Mobile (≤ 767px)
───────────────────────────────────── */
@media (max-width: 767px) {
	.dateka-hero {
		min-height: 560px;
	}

	.dateka-hero__inner {
		padding: 56px 20px;
	}

	.dateka-hero__title {
		font-size: clamp(1.9rem, 8vw, 2.75rem);
	}

	.dateka-hero__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.dateka-hero__button {
		width: 100%;
	}

	.dateka-hero__features-card {
		padding: 24px 20px;
	}
}

/* Accessibility pass */
@media (prefers-reduced-motion: reduce) {
	.dateka-hero__title,
	.dateka-hero__word,
	.dateka-hero__description,
	.dateka-hero__actions,
	.dateka-hero__footer-text,
	.dateka-hero__features-card,
	.dateka-hero__title-accent,
	.dateka-hero__glow {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}

	.dateka-hero__button {
		transition: none !important;
	}
}
