@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/**
 * Ad Zone - Frontend Styles
 * Fixed 304px Floating Box (Bottom-Right)
 */

.ad-zone-box,
.ad-zone-box * {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.ad-zone-box {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 304px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	z-index: 999999;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	opacity: 0;
	transform: translateY(20px) scale(0.97);
	transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

.ad-zone-box.ad-zone-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.ad-zone-box.ad-zone-hiding {
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	pointer-events: none;
	transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.ad-zone-inner {
	box-sizing: border-box;
	width: 100%;
	background: linear-gradient(160deg, #053135 0%, #0A6169 100%);
	border-top: 4px solid #dead3b;
	box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45), 0 6px 16px -2px rgba(0, 0, 0, 0.25);
	border-radius: 18px;
	padding: 16px 20px 20px 20px;
	color: #ffffff;
}

/* Header */
.ad-zone-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ad-zone-badge-group {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

/* Locked Non-Configurable Chip */
.ad-zone-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 10px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 1px solid rgba(246, 205, 98, 0.5);
	background: rgba(246, 205, 98, 0.08);
	color: #f6cd62 !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1;
	text-transform: uppercase;
	user-select: none;
	flex-shrink: 0;
}

.ad-zone-domain {
	font-size: 13px;
	font-weight: 400;
	color: #9db7b0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Close Button */
.ad-zone-close {
	background: rgba(255, 255, 255, 0.07);
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	min-width: 28px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8faea7;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	outline: none;
}

.ad-zone-close:hover,
.ad-zone-close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.ad-zone-close:active {
	transform: scale(0.92);
}

/* Divider */
.ad-zone-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.09);
	margin: 15px 0 16px 0;
}

/* Brand Row */
.ad-zone-brand-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ad-zone-logo-wrapper {
	width: 48px;
	height: 48px;
	min-width: 48px;
	background: #ffffff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 4px;
	box-sizing: border-box;
}

.ad-zone-logo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.ad-zone-logo-placeholder {
	background: #ffffff;
}

.ad-zone-brand-meta {
	min-width: 0;
	flex: 1;
}

.ad-zone-brand-name {
	font-size: 14.5px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ad-zone-brand-subtitle {
	font-size: 12.5px;
	font-weight: 400;
	color: #8faea7;
	line-height: 1.3;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Headline */
.ad-zone-headline {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.28;
	color: #f6cd62 !important;
	margin: 0 0 12px 0;
	padding: 0;
	text-align: left;
}

/* Description */
.ad-zone-description {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.45;
	color: #ffffff;
	margin: 0 0 18px 0;
	padding: 0;
	text-align: left;
}

/* CTA Button */
.ad-zone-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: #f6cd62;
	color: #073838 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	padding: 12px 16px;
	border-radius: 10px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.ad-zone-btn:hover,
.ad-zone-btn:focus-visible {
	background: #fbd676;
	color: #052a2a !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(246, 205, 98, 0.35);
}

.ad-zone-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.ad-zone-btn-arrow {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ad-zone-btn:hover .ad-zone-btn-arrow {
	transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.ad-zone-box {
		right: 16px;
		bottom: 16px;
		width: calc(100vw - 32px);
	}
}
