/**
 * WiFi Aggregator Hub Public Frontend Stylesheet - Modern Premium Aesthetic
 */

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

.wah-public-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
	line-height: 1.5;
}

/* Breadcrumbs */
.wah-breadcrumbs {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wah-breadcrumbs a {
	color: #0284c7;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.wah-breadcrumbs a:hover {
	color: #0369a1;
	text-decoration: underline;
}

/* Hero Section */
.wah-landing-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0369a1 100%);
	color: #ffffff;
	padding: 48px 32px;
	border-radius: 20px;
	margin-bottom: 36px;
	text-align: center;
	box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.3);
	position: relative;
	overflow: hidden;
}

.wah-landing-hero::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.wah-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #38bdf8;
	padding: 6px 16px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.wah-landing-hero h1 {
	color: #ffffff;
	font-size: 34px;
	font-weight: 800;
	margin: 0 0 14px 0;
	line-height: 1.25;
	letter-spacing: -0.8px;
}

@media (max-width: 640px) {
	.wah-landing-hero h1 {
		font-size: 26px;
	}
	.wah-landing-hero {
		padding: 32px 20px;
	}
}

.wah-hero-sub {
	color: #cbd5e1;
	font-size: 16px;
	max-width: 720px;
	margin: 0 auto 28px auto;
	line-height: 1.6;
}

/* AI Summary Box */
.wah-ai-summary-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 5px solid #0284c7;
	border-radius: 16px;
	padding: 28px;
	margin-bottom: 36px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.wah-ai-summary-box h2 {
	margin-top: 0;
	font-size: 19px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: -0.3px;
}

.wah-ai-summary-box p {
	margin: 12px 0 0 0;
	line-height: 1.7;
	color: #334155;
	font-size: 15px;
}

/* Provider Tags Strip */
.wah-providers-strip {
	margin-bottom: 36px;
}

.wah-providers-strip h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 14px;
	color: #0f172a;
	letter-spacing: -0.3px;
}

.wah-provider-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wah-provider-tag {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 10px 18px;
	border-radius: 10px;
	text-decoration: none;
	color: #0f172a;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wah-provider-tag:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

/* Articles Card Grid */
.wah-articles-section h2 {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 20px;
	letter-spacing: -0.4px;
}

.wah-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

@media (max-width: 480px) {
	.wah-card-grid {
		grid-template-columns: 1fr;
	}
}

.wah-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.wah-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wah-card-header {
	padding: 14px 18px;
	background: #f8fafc;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.wah-card-provider {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wah-card-domain {
	color: #64748b;
	font-weight: 500;
}

.wah-card-image {
	position: relative;
	overflow: hidden;
	background: #f1f5f9;
}

.wah-card-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wah-card:hover .wah-card-image img {
	transform: scale(1.04);
}

/* Fallback card banner when image is missing */
.wah-card-banner-fallback {
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.wah-card-body {
	padding: 20px;
	flex-grow: 1;
}

.wah-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #0f172a;
	line-height: 1.4;
	letter-spacing: -0.3px;
}

.wah-card-excerpt {
	font-size: 14px;
	color: #475569;
	margin: 0;
	line-height: 1.6;
}

.wah-card-actions {
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Buttons */
.wah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.wah-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.wah-btn-outline {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	flex: 1 1 auto;
}

.wah-btn-primary {
	background: #0284c7;
	color: #ffffff;
	flex: 1 1 auto;
	box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.wah-btn-whatsapp {
	background: #25D366;
	color: #ffffff;
	width: 100%;
	margin-top: 4px;
	box-shadow: 0 2px 4px rgba(37, 211, 102, 0.25);
}

/* Search Widget */
.wah-search-widget {
	max-width: 620px;
	margin: 0 auto;
	position: relative;
}

.wah-search-box-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.wah-search-icon {
	position: absolute;
	left: 18px;
	font-size: 18px;
	pointer-events: none;
}

#wah-search-input {
	width: 100%;
	padding: 16px 20px 16px 52px;
	border-radius: 40px;
	border: 2px solid transparent;
	font-size: 15px;
	outline: none;
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

#wah-search-input:focus {
	border-color: #38bdf8;
	box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3);
}

.wah-search-results-dropdown {
	position: absolute;
	top: 115%;
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.2);
	overflow: hidden;
	z-index: 99999;
	text-align: left;
	border: 1px solid #e2e8f0;
}

.wah-search-item {
	padding: 14px 20px;
	display: block;
	color: #0f172a;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
}

.wah-search-item:hover {
	background: #f0f9ff;
	color: #0284c7;
}

/* Related Section */
.wah-related-section {
	margin: 48px 0;
	padding: 28px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.wah-related-section h3 {
	margin-top: 0;
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 16px;
}

.wah-related-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wah-related-chip {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 8px 16px;
	border-radius: 30px;
	font-size: 13px;
	color: #0284c7;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.wah-related-chip:hover {
	background: #e0f2fe;
	border-color: #38bdf8;
	transform: translateY(-1px);
}

/* FAQ Section */
.wah-faq-section {
	margin-top: 48px;
}

.wah-faq-section h2 {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 20px;
}

.wah-faq-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 14px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.wah-faq-item h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.wah-faq-item p {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
}
