
/**
 * MyTop Bar - Homepage Styles
 *
 * @package MyTop_Bar
 * @since   0.1
 */

/* Homepage
-------------------------------------------------------------- */

.mtb-home {
	color: var(--mtb-text);
	font-size: 16px;
	line-height: 1.7;
}

.mtb-home h1,
.mtb-home h2,
.mtb-home h3 {
	color: var(--mtb-heading);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.025em;
	margin: 0 0 16px;
}

.mtb-home h1 {
	font-size: clamp(36px, 5vw, 60px);
}

.mtb-home h2 {
	font-size: clamp(28px, 4vw, 40px);
}

.mtb-home h3 {
	font-size: 21px;
}

/* Hero
-------------------------------------------------------------- */

.mtb-home .mtb-hero {
	padding: 100px 0 80px;
	text-align: center;
	background: linear-gradient(
		180deg,
		var(--mtb-primary-light),
		#fff
	);
}

.mtb-home .mtb-hero h1 {
	max-width: 900px;
	margin: 0 auto 22px;
}

.mtb-home .mtb-hero h1 span {
	color: var(--mtb-primary);
}

.mtb-home .mtb-hero-desc {
	max-width: 740px;
	margin: 0 auto;
	font-size: 19px;
}

.mtb-home .mtb-hero-note {
	margin: 20px 0 0;
	color: var(--mtb-muted);
	font-size: 14px;
}

/* Interactive Demo
-------------------------------------------------------------- */

.mtb-demo {
	max-width: 1000px;
	margin: 50px auto 0;
	border: 1px solid var(--mtb-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.mtb-browser {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 15px 18px;
	background: #f1f5f9;
	border-bottom: 1px solid var(--mtb-border);
}

.mtb-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.mtb-dot:nth-child(1) {
	background: #f87171;
}

.mtb-dot:nth-child(2) {
	background: #fbbf24;
}

.mtb-dot:nth-child(3) {
	background: #4ade80;
}

/* Notification Bar
-------------------------------------------------------------- */

.mtb-demo-bar {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 65px;
	padding: 14px 42px 14px 20px;
	background: var(--mtb-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.mtb-demo-bar[hidden] {
	display: none;
}

.mtb-demo-extra {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.mtb-demo-extra:empty {
	display: none;
}

.mtb-demo-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.mtb-demo-close:hover,
.mtb-demo-close:focus {
	background: transparent;
	color: #fff;
}

.mtb-page .mtb-demo-close:focus-visible {
	outline-color: #fff;
}

/* Demo Content
-------------------------------------------------------------- */

.mtb-demo-content {
	padding: 35px 20px;
}

.mtb-home .mtb-demo-content h3 {
	font-size: 26px;
}

.mtb-demo-content p:last-child {
	margin-bottom: 0;
}

/* Demo Controls
-------------------------------------------------------------- */

.mtb-demo-controls {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px;
	border-top: 1px solid var(--mtb-border);
}

.mtb-demo-controls button {
	padding: 8px 15px;
	border: 1px solid var(--mtb-border);
	border-radius: 6px;
	background: #fff;
	color: var(--mtb-text);
	font-size: 13px;
	line-height: 1.5;
}

.mtb-demo-controls button:hover,
.mtb-demo-controls button[aria-pressed="true"] {
	background: var(--mtb-primary-light);
	border-color: var(--mtb-primary);
	color: var(--mtb-primary);
}

/* Countdown Timer
-------------------------------------------------------------- */

.mtb-timer {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-variant-numeric: tabular-nums;
}

.mtb-timer span {
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
}

/* Notification Bar Examples
-------------------------------------------------------------- */

.mtb-examples {
	display: grid;
	gap: 22px;
	max-width: 950px;
	margin-inline: auto;
}

.mtb-example {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 22px;
	border-radius: var(--mtb-radius);
	color: #fff;
	text-align: center;
	font-weight: 600;
}

.mtb-example-announcement,
.mtb-demo-bar[data-mtb-preset="announcement"] {
	background: var(--mtb-primary);
}

.mtb-example-promotion,
.mtb-demo-bar[data-mtb-preset="promotion"] {
	background: #0f172a;
}

.mtb-example-countdown,
.mtb-demo-bar[data-mtb-preset="countdown"] {
	background: #dc2626;
}

.mtb-example-shipping,
.mtb-demo-bar[data-mtb-preset="shipping"] {
	background: #15803d;
}

.mtb-example-btn {
	display: inline-block;
	padding: 6px 15px;
	border-radius: 5px;
	background: #fff;
	color: #0f172a;
	font-size: 13px;
	font-weight: 600;
}

.mtb-home .mtb-example-label {
	margin: 7px 0 0;
	color: var(--mtb-muted);
	font-size: 13px;
}

/* Benefits
-------------------------------------------------------------- */

.mtb-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 65px;
}

/* Getting Started
-------------------------------------------------------------- */

.mtb-step {
	padding: 20px;
	text-align: center;
}

.mtb-step-number {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--mtb-primary);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
}

/* Final CTA
-------------------------------------------------------------- */

.mtb-home .mtb-final-cta h2 {
	color: #fff;
}

/* Responsive
-------------------------------------------------------------- */

@media (max-width: 900px) {
	.mtb-benefits {
		gap: 35px;
	}
}

@media (max-width: 600px) {
	.mtb-home .mtb-hero {
		padding: 60px 0 45px;
	}

	.mtb-home .mtb-hero-desc {
		font-size: 17px;
	}

	.mtb-benefits {
		grid-template-columns: minmax(0, 1fr);
	}

	.mtb-demo {
		margin-top: 35px;
	}
}
