/**
 * ExpressNews Responsive Stylesheet
 * Breakpoints and Mobile Enhancements
 */

/* Search Overlay Modal */
.search-overlay-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 15vh;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay-modal.active {
	opacity: 1;
	visibility: visible;
}

.search-modal-box {
	width: 100%;
	max-width: 680px;
	padding: 0 1.5rem;
	transform: translateY(-20px);
	transition: transform 0.3s ease;
}

.search-overlay-modal.active .search-modal-box {
	transform: translateY(0);
}

.search-modal-close {
	position: absolute;
	top: 2rem;
	right: 2.5rem;
	background: transparent;
	border: none;
	color: #FFFFFF;
	font-size: 2rem;
	cursor: pointer;
}

.modal-search-form {
	display: flex;
	background: #FFFFFF;
	border-radius: var(--radius-full);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.modal-search-input {
	flex: 1;
	padding: 1.1rem 1.75rem;
	font-size: 1.15rem;
	border: none;
	outline: none;
	font-family: inherit;
}

.modal-search-submit {
	background: var(--primary-color);
	border: none;
	color: #FFFFFF;
	padding: 0 2rem;
	font-size: 1.25rem;
	cursor: pointer;
	transition: var(--transition);
}

.modal-search-submit:hover {
	background: var(--primary-hover);
}

/* Mobile Slide-in Drawer */
.mobile-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

.mobile-drawer-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 82%;
	max-width: 320px;
	background: #FFFFFF;
	z-index: 10001;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

body.dark-theme .mobile-drawer-panel {
	background: #0F172A;
}

.mobile-drawer-overlay.open .mobile-drawer-panel {
	transform: translateX(0);
}

.drawer-header {
	padding: 1.25rem;
	background: var(--dark-nav-bg);
	color: #FFFFFF;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.drawer-logo {
	font-size: 1.4rem;
	font-weight: 800;
	color: #FFFFFF;
}

.drawer-close-btn {
	background: transparent;
	border: none;
	color: #FFFFFF;
	font-size: 1.35rem;
	cursor: pointer;
}

.drawer-content {
	padding: 1.25rem;
	flex: 1;
}

.drawer-menu-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.drawer-menu-list a {
	display: block;
	padding: 0.65rem 0.85rem;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text-heading);
	border-radius: var(--radius-sm);
	border-bottom: 1px solid var(--border-light);
}

.drawer-menu-list a:hover {
	background: var(--primary-light);
	color: var(--primary-color);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #0B1120;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 9990;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-inner {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 56px;
}

.mobile-bottom-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #94A3B8;
	font-size: 0.72rem;
	font-weight: 600;
	gap: 3px;
	flex: 1;
	height: 100%;
	transition: var(--transition);
}

.mobile-bottom-item i {
	font-size: 1.15rem;
}

.mobile-bottom-item:hover, .mobile-bottom-item.active {
	color: var(--primary-color);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Large Desktop (1200px and down) */
@media (max-width: 1200px) {
	.editorial-grid-layout {
		grid-template-columns: 210px minmax(0, 1fr) 300px;
		gap: 1.25rem;
	}
	.footer-top-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

/* Tablet Landscape (1024px and down) */
@media (max-width: 1024px) {
	.editorial-grid-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
	.editorial-left-col {
		display: none; /* Replaced by drawer on tablet/mobile */
	}
	.header-ad-space {
		display: none;
	}
	.site-main-header {
		padding: 0.85rem 0;
	}
}

/* Tablet Portrait & Mobile (768px and down) */
@media (max-width: 768px) {
	body {
		padding-bottom: 60px; /* Space for mobile bottom bar */
	}

	.editorial-grid-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-top: 1rem;
	}

	.editorial-center-col {
		padding: 1.25rem;
	}

	.article-headline-main {
		font-size: 1.65rem;
	}

	.article-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.related-news-grid {
		grid-template-columns: 1fr;
	}

	.post-prev-next-nav {
		grid-template-columns: 1fr;
	}

	.top-utility-bar {
		display: none;
	}

	.nav-menu-primary {
		display: none;
	}

	.mobile-bottom-bar {
		display: block;
	}

	.footer-top-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.floating-feedback-tab {
		display: none; /* Hide on mobile to prevent blocking reading */
	}
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
	.site-logo-text {
		font-size: 1.6rem;
	}

	.news-social-share-bar {
		justify-content: flex-start;
	}

	.share-btn {
		height: 34px;
		padding: 0 0.75rem;
		font-size: 0.82rem;
	}

	.share-facebook, .share-x, .share-telegram, .share-copy {
		width: 34px;
	}

	.join-social-buttons-grid {
		flex-direction: column;
	}

	.join-pill-btn {
		width: 100%;
		justify-content: center;
	}
}
