/* ==========================================================================
   Hero Section Widget Styles
   Prefix: .mtw-
   ========================================================================== */

.mtw-hero-wrapper {
	width: 100%;
	background-color: var(--bg-body, #F5F3FA);
	padding: 80px 40px;
	box-sizing: border-box;
	font-family: var(--font-body, 'Inter', sans-serif);
	overflow: hidden;
	transition: background-color 0.35s ease, color 0.35s ease;
}

.mtw-hero-container {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

/* Left Column */
.mtw-hero-left {
	flex: 1 1 55%;
	max-width: 650px;
}

.mtw-hero-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	background-color: var(--bg-surface-elevated, rgba(141, 52, 151, 0.1));
	border: 1px solid var(--border-color, rgba(141, 52, 151, 0.2));
	border-radius: var(--radius-full, 50px);
	color: var(--primary-color, #8D3497);
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	margin-bottom: 24px;
	text-transform: uppercase;
}

.mtw-hero-title {
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-weight: 800;
	font-size: 54px;
	line-height: 1.15;
	color: var(--text-heading, #0F0926);
	margin: 0 0 20px 0;
	letter-spacing: -1.5px;
}

.mtw-hero-title-highlight {
	background: var(--gradient-primary, linear-gradient(135deg, #8D3497 0%, #1F10BF 100%));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.mtw-hero-subtitle {
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-body, #4A4660);
	margin: 0 0 36px 0;
	max-width: 540px;
}

/* Buttons */
.mtw-hero-buttons {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.mtw-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	background: var(--gradient-primary, linear-gradient(135deg, #8D3497 0%, #1F10BF 100%));
	color: var(--mtw-btn-text, #FFFFFF);
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-weight: 700;
	font-size: 15px;
	border-radius: var(--radius-full, 50px);
	text-decoration: none;
	box-shadow: var(--shadow-glow-primary, 0 10px 25px -5px rgba(141, 52, 151, 0.4));
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mtw-btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl);
	color: #FFFFFF;
}

.mtw-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	background-color: var(--bg-surface-elevated, rgba(141, 52, 151, 0.08));
	border: 1px solid var(--border-color, rgba(141, 52, 151, 0.25));
	color: var(--primary-color, #8D3497);
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-weight: 700;
	font-size: 15px;
	border-radius: var(--radius-full, 50px);
	text-decoration: none;
	transition: all 0.3s ease;
}

.mtw-btn-secondary:hover {
	background-color: var(--primary-color, #8D3497);
	border-color: var(--primary-color, #8D3497);
	color: #FFFFFF;
	transform: translateY(-2px);
}

.mtw-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* Stats Row */
.mtw-hero-stats {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--border-color, #E2D9F3);
}

.mtw-stat-item {
	display: flex;
	flex-direction: column;
}

.mtw-stat-value {
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-weight: 800;
	font-size: 32px;
	color: var(--primary-color, #8D3497);
	line-height: 1.1;
}

.mtw-stat-label {
	font-size: 13px;
	color: var(--text-muted, #7E7A96);
	font-weight: 500;
	margin-top: 4px;
}

/* Right Column: Browser Mockup */
.mtw-hero-right {
	flex: 1 1 45%;
	max-width: 520px;
	position: relative;
}

.mtw-mockup-wrapper {
	position: relative;
	width: 100%;
}

.mtw-browser-mockup {
	background: var(--bg-surface, #FFFFFF);
	border-radius: var(--radius-lg, 20px);
	box-shadow: var(--shadow-xl);
	border: 1px solid var(--border-color, #E6E1F3);
	overflow: hidden;
	transition: transform 0.4s ease;
}

.mtw-browser-mockup:hover {
	transform: translateY(-4px);
}

.mtw-browser-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--bg-surface-elevated, #FAFAFD);
	border-bottom: 1px solid var(--border-color, #F0EEF8);
}

.mtw-browser-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mtw-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.mtw-dot.red { background-color: #FF5F56; }
.mtw-dot.yellow { background-color: #FFBD2E; }
.mtw-dot.green { background-color: #27C93F; }

.mtw-browser-url {
	font-size: 12px;
	color: var(--text-muted, #8E8EA1);
	font-weight: 600;
}

.mtw-browser-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mtw-skeleton-bar {
	height: 12px;
	border-radius: 6px;
	background: var(--border-color, #EFEBF7);
}

.mtw-skeleton-bar.bar-long {
	width: 90%;
}

.mtw-skeleton-bar.bar-medium {
	width: 60%;
}

.mtw-skeleton-bar.bar-gradient {
	width: 75%;
	height: 16px;
	background: var(--gradient-primary, linear-gradient(90deg, #8D3497 0%, #1F10BF 100%));
	border-radius: 8px;
	opacity: 0.8;
}

.mtw-skeleton-blocks {
	display: flex;
	gap: 16px;
	margin-top: 8px;
}

.mtw-skeleton-block {
	height: 60px;
	border-radius: 12px;
	background: var(--bg-surface-elevated, #F5F3FA);
}

.mtw-skeleton-block.block-lg { flex: 2; }
.mtw-skeleton-block.block-sm { flex: 1; }

/* Floating Badges */
.mtw-floating-badge {
	position: absolute;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	background: var(--bg-surface, #FFFFFF);
	border-radius: 50px;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border-color, #E6E1F3);
	font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--text-heading, #0F0926);
	animation: mtw-float 4s ease-in-out infinite;
}

.mtw-badge-top {
	top: -20px;
	right: -10px;
}

.mtw-badge-bottom {
	bottom: -20px;
	left: -10px;
	animation-delay: 2s;
}

.mtw-badge-icon {
	color: var(--primary-color, #8D3497);
	font-size: 14px;
	display: inline-flex;
}

@keyframes mtw-float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

/* Dark Theme Overrides */
[data-theme="dark"] .mtw-hero-wrapper {
	background-color: var(--bg-body, #090616);
}

[data-theme="dark"] .mtw-hero-title {
	color: var(--text-heading, #F5F3FF);
}

[data-theme="dark"] .mtw-hero-subtitle {
	color: var(--text-body, #B9B4D6);
}

[data-theme="dark"] .mtw-hero-badge {
	background-color: rgba(178, 70, 189, 0.15);
	border-color: rgba(178, 70, 189, 0.3);
	color: var(--primary-light, #B246BD);
}

[data-theme="dark"] .mtw-btn-secondary {
	background-color: rgba(178, 70, 189, 0.15);
	border-color: rgba(178, 70, 189, 0.35);
	color: var(--primary-light, #B246BD);
}

[data-theme="dark"] .mtw-btn-secondary:hover {
	background-color: var(--primary-color, #8D3497);
	border-color: var(--primary-color, #8D3497);
	color: #FFFFFF;
}

[data-theme="dark"] .mtw-stat-value {
	color: var(--primary-light, #B246BD);
}

[data-theme="dark"] .mtw-stat-label {
	color: var(--text-muted, #827BA3);
}

[data-theme="dark"] .mtw-hero-stats {
	border-top-color: var(--border-color, #271E4B);
}

[data-theme="dark"] .mtw-browser-mockup,
[data-theme="dark"] .mtw-floating-badge {
	background-color: var(--bg-surface, #120D28);
	border-color: var(--border-color, #271E4B);
	color: var(--text-heading, #F5F3FF);
}

[data-theme="dark"] .mtw-browser-header {
	background-color: var(--bg-surface-elevated, #1B1439);
	border-bottom-color: var(--border-color, #271E4B);
}

[data-theme="dark"] .mtw-skeleton-bar,
[data-theme="dark"] .mtw-skeleton-block {
	background-color: var(--bg-surface-elevated, #1B1439);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
	.mtw-hero-container {
		flex-direction: column;
		text-align: center;
		gap: 50px;
	}

	.mtw-hero-left {
		max-width: 100%;
	}

	.mtw-hero-subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.mtw-hero-buttons {
		justify-content: center;
	}

	.mtw-hero-stats {
		justify-content: center;
	}

	.mtw-hero-right {
		max-width: 480px;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.mtw-hero-wrapper {
		padding: 50px 20px;
	}

	.mtw-hero-title {
		font-size: 36px;
	}

	.mtw-hero-buttons {
		flex-direction: column;
		width: 100%;
	}

	.mtw-btn-primary, .mtw-btn-secondary {
		width: 100%;
	}

	.mtw-hero-stats {
		flex-direction: column;
		gap: 20px;
	}

	.mtw-badge-top {
		top: -15px;
		right: 0;
	}

	.mtw-badge-bottom {
		bottom: -15px;
		left: 0;
	}
}
