/**
 * Header, Navigation, Mobile Drawer & Footer Styles
 *
 * @package Operatorpod
 */

/* Header */
.op-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--op-color-border);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.op-header-container {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* Brand Link */
.op-brand-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--op-color-text-main);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.op-brand-logo {
	flex-shrink: 0;
}

.op-brand-name {
	background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.op-desktop-nav {
	display: flex;
	align-items: center;
}

@media (max-width: 960px) {
	.op-desktop-nav {
		display: none;
	}
}

.op-nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.5rem;
}

.op-nav-item {
	position: relative;
}

.op-nav-link {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.85rem;
	font-size: 0.925rem;
	font-weight: 500;
	color: #cbd5e1;
	text-decoration: none;
	border-radius: var(--op-radius);
	transition: var(--op-transition);
}

.op-nav-link:hover,
.op-nav-item:focus-within > .op-nav-link {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.op-dropdown-icon {
	transition: transform 0.2s ease;
}

.op-has-dropdown:hover .op-dropdown-icon,
.op-has-dropdown:focus-within .op-dropdown-icon {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.op-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #0f172a;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6);
	list-style: none;
	padding: 0.5rem;
	margin: 0.5rem 0 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 1050;
}

.op-has-dropdown:hover .op-dropdown-menu,
.op-has-dropdown:focus-within .op-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.op-dropdown-menu li {
	margin: 0;
}

.op-dropdown-menu a {
	display: block;
	padding: 0.6rem 0.85rem;
	font-size: 0.875rem;
	color: #cbd5e1;
	text-decoration: none;
	border-radius: 4px;
	transition: var(--op-transition);
}

.op-dropdown-menu a:hover,
.op-dropdown-menu a:focus {
	background: rgba(50, 108, 229, 0.15);
	color: var(--op-color-sky);
}

/* Header Actions */
.op-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.op-search-toggle {
	background: transparent;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	cursor: pointer;
	transition: var(--op-transition);
}

.op-search-toggle:hover {
	background: var(--op-color-surface-raised);
	color: #ffffff;
	border-color: #475569;
}

@media (max-width: 960px) {
	.op-header-cta {
		display: none;
	}
}

/* Mobile Hamburger Button */
.op-mobile-menu-btn {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	padding: 10px;
	cursor: pointer;
	z-index: 1100;
}

@media (max-width: 960px) {
	.op-mobile-menu-btn {
		display: flex;
	}
}

.op-hamburger-line {
	width: 100%;
	height: 2px;
	background: #cbd5e1;
	border-radius: 2px;
	transition: var(--op-transition);
}

.op-mobile-menu-open .op-hamburger-line:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.op-mobile-menu-open .op-hamburger-line:nth-child(2) {
	opacity: 0;
}

.op-mobile-menu-open .op-hamburger-line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.op-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 360px;
	height: 100vh;
	background: #0f172a;
	border-left: 1px solid var(--op-color-border);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 2000;
	overflow-y: auto;
}

.op-drawer-open {
	transform: translateX(0);
}

.op-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--op-color-border);
	margin-bottom: 1.5rem;
}

.op-drawer-close-btn {
	background: transparent;
	border: none;
	color: #cbd5e1;
	cursor: pointer;
	padding: 0.5rem;
}

.op-drawer-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.op-drawer-link {
	font-size: 1.1rem;
	font-weight: 600;
	color: #f8fafc;
	text-decoration: none;
	display: block;
	padding: 0.4rem 0;
}

.op-drawer-group-title {
	font-size: 0.8125rem;
	color: var(--op-color-cyan);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	margin-top: 0.75rem;
	display: block;
}

.op-drawer-sub-list {
	list-style: none;
	padding-left: 0.75rem;
	margin: 0.5rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-left: 2px solid var(--op-color-border);
}

.op-drawer-sub-list a {
	font-size: 0.95rem;
	color: #cbd5e1;
	text-decoration: none;
	display: block;
	padding: 0.25rem 0;
}

.op-drawer-cta-item {
	margin-top: 1.5rem;
}

/* Search Modal */
.op-search-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 10vh;
}

.op-search-modal-open {
	display: flex;
}

.op-search-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
}

.op-search-modal-box {
	position: relative;
	width: 100%;
	max-width: 640px;
	padding: 0 1.5rem;
	z-index: 3010;
}

.op-search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	background: #0f172a;
	border: 2px solid var(--op-color-primary);
	border-radius: var(--op-radius-lg);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
	overflow: hidden;
}

.op-search-input-wrapper .op-icon {
	margin-left: 1.25rem;
	color: var(--op-color-sky);
	flex-shrink: 0;
}

.op-search-input {
	width: 100%;
	background: transparent;
	border: none;
	padding: 1.25rem 1rem;
	font-size: 1.15rem;
	color: #ffffff;
	font-family: inherit;
}

.op-search-input:focus {
	outline: none;
}

.op-search-close-btn {
	background: #1e293b;
	border: 1px solid var(--op-color-border);
	color: #cbd5e1;
	border-radius: 4px;
	padding: 0.3rem 0.6rem;
	margin-right: 1.25rem;
	font-size: 0.75rem;
	font-family: var(--op-font-mono);
	cursor: pointer;
}

/* Footer */
.op-site-footer {
	background: #070c18;
	border-top: 1px solid var(--op-color-border);
	padding: 4.5rem 0 2.5rem;
	margin-top: auto;
}

.op-footer-container {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.op-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
	gap: 3rem;
	margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
	.op-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
	.op-footer-brand-col {
		grid-column: span 2;
	}
}

@media (max-width: 540px) {
	.op-footer-grid {
		grid-template-columns: 1fr;
	}
	.op-footer-brand-col {
		grid-column: span 1;
	}
}

.op-footer-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.op-footer-desc {
	font-size: 0.925rem;
	color: var(--op-color-text-muted);
	line-height: 1.6;
	max-width: 380px;
	margin-bottom: 1.5rem;
}

.op-footer-privacy-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: rgba(16, 185, 129, 0.08);
	border: 1px solid rgba(16, 185, 129, 0.25);
	padding: 0.4rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	color: #34d399;
}

.op-footer-heading {
	font-size: 0.875rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1.25rem 0;
}

.op-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.op-footer-links a {
	font-size: 0.9rem;
	color: var(--op-color-text-muted);
	text-decoration: none;
	transition: var(--op-transition);
}

.op-footer-links a:hover {
	color: var(--op-color-sky);
}

.op-footer-bottom {
	border-top: 1px solid var(--op-color-border-subtle);
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--op-color-text-subtle);
}

.op-footer-copyright {
	margin: 0;
	color: var(--op-color-text-muted);
}

.op-footer-disclaimer-text {
	margin: 0;
	line-height: 1.5;
}
