/* ============================================================
 * Talordata Blog — nav.css
 * Replicates components/layout/AppHeader.vue.
 * Structure: Products mega menu (SERP/Residential tabs) + Pricing +
 * Resources (Locations + Quick links) + Docs.
 * ============================================================ */

.navbar {
	width: 100%;
	height: 64px;
	border-bottom: 1px solid #e5e7ed;
	background: #fff;
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
}
.navbar-container {
	max-width: 1388px;
	height: 64px;
	margin: 0 auto;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-section { display: flex; align-items: center; }
.logo-placeholder {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}
.logo-placeholder img { display: block; width: auto; height: 26px; }

.nav-menu-box {
	width: calc(100% - 100px);
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
}

.nav-item {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	height: 100%;
	background: transparent;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: #1c1d1f;
	cursor: pointer;
	transition: background 0.2s ease;
	border-radius: 10px;
	text-decoration: none;
	line-height: 16px;
	text-transform: capitalize;
}
.nav-link--simple:hover { background: #f3f4f5; }
.nav-item.is-open > .nav-link,
.nav-item:hover > .nav-link { background: #f3f4f5; }

.dropdown-icon { transition: transform 0.2s ease; color: #1c1d1f; }
.nav-item.is-open > .nav-link .dropdown-icon,
.nav-item:hover > .nav-link .dropdown-icon { transform: rotate(180deg); }

/* Generic dropdown wrapper */
.dropdown-menu {
	position: absolute;
	top: calc(100% + 13px);
	left: 0;
	background: #fff;
	border: 1px solid #dfdfdf;
	border-radius: 16px;
	box-shadow: 0 18px 16px rgba(15, 23, 42, 0.08);
	padding: 24px;
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.nav-item.is-open > .dropdown-menu,
.nav-item:hover > .dropdown-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-title {
	color: #8f99a8;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.8px;
	line-height: 16px;
	margin: 0 0 20px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ========== Products mega menu ========== */
.products-dropdown-menu {
	left: 0;
	padding: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	width: 1411px;
}
.products-dropdown-menu[data-active-tab="residential"] { width: 935px; }

.products-menu {
	display: flex;
	align-items: stretch;
	min-height: 328px;
}
.products-menu__sidebar {
	width: 222px;
	padding: 24px 16px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	flex: none;
}
.products-menu__tab {
	width: 190px;
	height: 42px;
	padding: 0 12px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #6f7988;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	text-align: left;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.products-menu__tab.is-active,
.products-menu__tab:hover {
	background: #fff;
	color: #1c1d1f;
	font-weight: 600;
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.03);
}
.products-menu__divider { width: 1px; background: #eceef5; flex: none; }

.products-pane { display: none; align-items: stretch; flex: 1; min-width: 0; }
.products-pane.is-active { display: flex; }

/* Products feature card */
.products-feature-card {
	width: 300px;
	height: 280px;
	margin: 24px 0 24px 24px;
	padding: 16px 20px;
	border-radius: 8px;
	background: #EDFBF5;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: none;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.products-feature-card:hover {
	background: #e4f7ee;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}
.products-feature-card__main { display: flex; flex-direction: column; align-items: flex-start; }
.products-feature-card__icon {
	width: 40px; height: 40px;
	border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.products-feature-card__icon img { width: 40px; height: 40px; display: block; object-fit: contain; }
.products-feature-card__copy { margin-top: 8px; }
.products-feature-card__copy h3 { margin: 0 0 6px; color: #1c1d1f; font-size: 18px; font-weight: 600; line-height: 24px; }
.products-feature-card__copy p { margin: 0; color: #6f7988; font-size: 13px; font-weight: 400; line-height: 18px; }
.products-feature-card__cta {
	height: 32px;
	margin-top: 20px;
	padding: 0 24px;
	border-radius: 10px;
	background: #1c1d1f;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.products-feature-card__cta:hover { background: #34363a; transform: translateY(-1px); }
.products-feature-card__docs {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 16px -8px 0;
	padding: 0 8px;
	border-radius: 8px;
	background: transparent;
	color: #1c1d1f;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	text-align: left;
	text-decoration: none;
}
.products-feature-card__docs::before {
	content: "";
	position: absolute;
	left: 8px; right: 8px; top: -16px;
	border-top: 1px dashed #CBDDD5;
	pointer-events: none;
}
.products-feature-card__docs:hover { background: rgba(255, 255, 255, 0.38); }
.products-feature-card__docs-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.products-feature-card__docs-icon img { width: 18px; height: 18px; display: block; object-fit: contain; }

/* Mega columns shared */
.mega-column { width: 328px; padding: 24px; box-sizing: border-box; flex: none; }
.products-dropdown-menu .mega-column { width: 280px; }
.mega-column--proxy-products { width: 384px; }

.mega-column__head {
	min-height: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eceef5;
	margin-bottom: 14px;
}
.mega-column__head h3 {
	margin: 0;
	color: #8f99a8;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.8px;
	line-height: 16px;
	text-transform: uppercase;
}
.mega-column__head--more { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.mega-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: -4px -6px;
	padding: 4px 6px;
	border-radius: 6px;
	color: #8f99a8;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	white-space: nowrap;
}
.mega-more:hover { background: #fafafa; color: #1c1d1f; }
.mega-more__icon { width: 10px; height: 10px; display: block; object-fit: contain; }

.mega-column__list,
.proxy-product-list { display: flex; flex-direction: column; gap: 14px; }

.mega-list-row {
	width: 100%;
	min-height: 36px;
	padding: 3px 8px;
	border-radius: 8px;
	color: #1c1d1f;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	text-align: left;
	text-decoration: none;
	box-sizing: border-box;
	background: transparent;
	border: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.mega-list-row:hover { background: #fafafa; color: #0e1116; }

.products-dropdown-menu .mega-column__list { gap: 16px; }
.products-dropdown-menu .mega-list-row { height: 36px; padding: 0; gap: 14px; font-weight: 400; }

.mega-column__list--proxy-usecases { gap: 16px; }
.mega-list-row--proxy-usecase {
	height: 36px;
	min-height: 36px;
	margin: 0 -12px;
	padding: 0 12px;
	gap: 14px;
	font-weight: 400;
}

.mega-list-row__icon {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.mega-list-row__icon img { width: 30px; height: 30px; display: block; object-fit: contain; }
.mega-list-row__icon--plain { background: transparent; }
.mega-list-row__icon--plain img { width: 24px; height: 24px; }
.mega-column--integrations .mega-list-row__icon--plain img { width: 30px; height: 30px; }

/* Proxy product card (Residential tab) */
.proxy-product-card {
	width: 320px;
	min-height: 72px;
	padding: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.2s ease;
}
.proxy-product-card:hover { background: #fafafa; }
.proxy-product-card__icon {
	width: 43px; height: 37px;
	flex: none;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.proxy-product-card__icon img { width: 43px; height: 37px; display: block; object-fit: contain; }
.proxy-product-card__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proxy-product-card__copy strong { color: #1c1d1f; font-size: 13px; font-weight: 600; line-height: 18px; }
.proxy-product-card__copy > span { color: #8f99a8; font-size: 12px; font-weight: 400; line-height: 18px; }

/* ========== Pricing dropdown ========== */
.pricing-dropdown-menu { width: 929px; left: -180px; }
.pricing-columns { display: flex; align-items: stretch; gap: 28px; }
.pricing-divider { width: 1px; background: #eceef5; align-self: stretch; }
.pricing-column { display: flex; flex-direction: column; }
.pricing-list { display: flex; flex-direction: column; gap: 12px; }

.price-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 8px;
	transition: background 0.2s ease;
	width: 400px;
}
.price-card:hover { background: #fafafa; }
.price-card--highlight { width: 360px; }
.price-card-icon { flex: none; width: 43px; height: 37px; display: flex; align-items: center; justify-content: center; }
.price-card-icon img { width: 43px; height: 37px; display: block; object-fit: contain; }
.price-card-name { margin: 0; color: #1c1d1f; font-size: 14px; font-weight: 500; line-height: 22px; flex: 1; min-width: 0; }
.price-card-divider { width: 1px; height: 44px; background: #eceef5; flex: none; }
.price-card-money { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.price-card-money--width { min-width: 100px; }
.price-card-tip { margin: 0; color: #a4abba; font-size: 12px; font-weight: 400; line-height: 18px; }
.price-card-value { margin: 0; display: flex; align-items: flex-end; gap: 2px; }
.price-card-value .amount { color: #1c1d1f; font-size: 18px; font-weight: 600; line-height: 20px; }
.price-card-value .unit { color: #6f7988; font-size: 12px; font-weight: 500; line-height: 18px; }

/* ========== Resources mega menu ========== */
.resources-dropdown-menu {
	width: 860px;
	left: -270px;
	padding: 24px;
}
.resources-dropdown-menu .mega-column__head { border-bottom: 1px solid transparent; }
.resources-mega { display: flex; align-items: stretch; gap: 28px; }
.resources-mega__locations { width: 546px; flex: none; }
.resources-mega__links { width: 204px; flex: none; }
.resources-mega__links .mega-list-row { padding: 3px 12px; }
.resources-mega__divider { width: 1px; background: #eceef5; flex: none; }
.resources-location-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 28px;
	row-gap: 14px;
}
.location-flag {
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	flex: none;
}
.location-flag img { width: 30px; height: 30px; display: block; object-fit: contain; }

.resource-link-icon {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #f6f7f8;
	color: #6f7988;
	display: flex; align-items: center; justify-content: center;
	flex: none;
}
.resource-link-icon img { width: 20px; height: 20px; display: block; object-fit: contain; }

/* ========== Right section ========== */
.right-section { display: flex; align-items: center; gap: 16px; }

.language-switcher { position: relative; }
.language-btn {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 12px;
	border: none; background: transparent;
	border-radius: 6px;
	font-size: 14px;
	color: #6f7988;
	transition: all 0.2s ease;
}
.language-btn:hover { background-color: #f3f4f6; }
.language-btn[aria-expanded="true"] .dropdown-icon { transform: rotate(180deg); }
.language-icon { color: #6f7988; }
.language-text { font-weight: 400; }
.dropdown-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px; height: 19px;
	border-radius: 4px;
	border: 1px solid #ececec;
	background: #f3f4f6;
}

.language-dropdown {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	width: 140px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.10), 0 5px 10px rgba(0,0,0,0.05);
	border: 1px solid #e5e7eb;
	padding: 8px 0;
	z-index: 1001;
}
.language-option {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 16px;
	color: #1c1d1f;
	font-size: 14px;
}
.language-option:hover { background-color: #f9fafb; }
.language-option.is-active { background-color: #eff6ff; color: #1c1d1f; font-weight: 600; }
.language-name { flex: 1; }

.auth-buttons { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-buttons .flow-tip {
	display: none;
	position: absolute;
	color: #005332;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	border-radius: 6px;
	background: #d1f5e6;
	right: 4px;
	bottom: -28px;
	padding: 0 8px;
}
.auth-buttons .flow-tip .arrow-icon {
	position: absolute;
	left: 50%;
	transform: translateX(-50%) rotate(180deg);
	top: -4px;
}

.btn-login, .btn-signup {
	display: inline-flex;
	align-items: center;
	padding: 0 20px;
	height: 34px;
	line-height: 32px;
	border-radius: 10px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
}
.btn-login { background: #fff; border: 1px solid #dfdfdf; color: #1c1d1f; }
.btn-signup { background: #1c1d1f; border: 1px solid #1c1d1f; color: #fff; }

/* ========== Mobile ========== */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: #4b5563;
	padding: 8px;
	border-radius: 6px;
}
.mobile-menu-btn:hover { background-color: #f3f4f6; }

.mobile-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	border-top: 1px solid #e5e7eb;
	z-index: 999;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu-content { padding: 16px 24px 24px; }
.mobile-nav-item { border-bottom: 1px solid #f3f4f6; }
.mobile-nav-header, .mobile-nav-link {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-weight: 500;
	color: #1f2937;
	background: #fff;
	border: none;
	text-align: left;
	font-size: 16px;
	text-decoration: none;
}
.mobile-nav-item.is-open .mobile-nav-header .dropdown-icon { transform: rotate(180deg); }
.mobile-dropdown {
	padding: 4px 0 8px 12px;
	display: flex;
	flex-direction: column;
}
.mobile-dropdown[hidden] { display: none; }
.mobile-sub-link {
	margin: 0 -8px;
	padding: 10px 8px;
	border-radius: 8px;
	color: #4b5563;
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.mobile-sub-link:hover { background: #fafafa; color: #1c1d1f; }
.mobile-language-selector { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.mobile-language-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mobile-language-option {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 14px;
	color: #4b5563;
}
.mobile-language-option.is-active { border-color: #1c1d1f; color: #1c1d1f; font-weight: 600; }
.mobile-auth-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.mobile-btn-login, .mobile-btn-signup {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 16px;
	text-align: center;
	text-decoration: none;
}
.mobile-btn-login { background: #fff; border: 1px solid #dfdfdf; color: #1c1d1f; }
.mobile-btn-signup { background: #1c1d1f; border: 1px solid #1c1d1f; color: #fff; }

.initial-animation { animation: tdInitialBounce 2s linear infinite; }
@keyframes tdInitialBounce {
	0% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
	100% { transform: translateY(0); }
}

/* The mega Products menu is too wide for narrow desktop — clamp left so it stays in viewport */
@media (max-width: 1480px) {
	.products-dropdown-menu { left: 0; max-width: calc(100vw - 32px); }
}
@media (max-width: 1024px) {
	.nav-menu-box { width: auto; }
	.nav-menu, .auth-buttons, .language-switcher { display: none; }
	.mobile-menu-btn { display: block; }
	.navbar-container { padding: 0 16px; }
}
