/**
 * Modern Energy Hub - Responsive Design Breakpoints & Mobile Enhancements
 * Breakpoints: 360px, 390px, 768px, 1024px, 1440px
 */

/* Responsive Embedded Media Wrapper */
.energy-responsive-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 ratio */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin: 2rem 0;
	border-radius: var(--radius-md);
}

.energy-responsive-embed iframe,
.energy-responsive-embed object,
.energy-responsive-embed embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Table Horizontal Scrolling on Mobile */
.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
	.entry-content table {
		display: table;
		white-space: normal;
	}
}

/* ========================================================
   BREAKPOINT: Max-width 1024px (Laptops & Tablets)
   ======================================================== */
@media (max-width: 1024px) {
	.editorial-layout-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.sidebar-column {
		position: static;
		margin-top: 1rem;
	}

	.category-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.explained-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.featured-editorial-grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================================
   BREAKPOINT: Max-width 768px (Mobile & Small Tablets)
   ======================================================== */
@media (max-width: 768px) {
	.header-top-bar {
		display: none;
	}

	.main-navigation {
		display: none;
	}

	.mobile-menu-btn {
		display: inline-flex;
	}

	.cards-grid-3, .cards-grid-2 {
		grid-template-columns: 1fr;
	}

	.guides-cards-grid {
		grid-template-columns: 1fr;
	}

	.energy-pros-cons-grid {
		grid-template-columns: 1fr;
	}

	.newsletter-input-group {
		flex-direction: column;
	}

	.newsletter-submit-btn {
		justify-content: center;
		width: 100%;
	}

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

	.footer-bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 0.75rem;
	}

	.footer-legal-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.meta-primary-row {
		flex-direction: row;
	}

	.category-hero-inner {
		flex-direction: column;
		gap: 1rem;
	}

	.category-hero-billboard {
		padding: 1.5rem;
	}

	/* Mobile Menu Drawer */
	.mobile-navigation-drawer {
		display: none;
		background: var(--color-white);
		border-bottom: 2px solid var(--color-green);
		padding: 1.5rem 0;
		box-shadow: var(--shadow-md);
	}

	.mobile-navigation-drawer.is-active {
		display: block;
	}

	.mobile-nav-list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.mobile-nav-list li a {
		display: block;
		padding: 0.75rem 1rem;
		font-weight: 600;
		font-size: 1rem;
		color: var(--color-navy);
		border-radius: var(--radius-md);
		text-decoration: none;
	}

	.mobile-nav-list li a:hover,
	.mobile-nav-list li.current-menu-item a {
		background: var(--color-card-bg);
		color: var(--color-green);
	}
}

/* ========================================================
   BREAKPOINT: Max-width 390px (Compact Mobile)
   ======================================================== */
@media (max-width: 390px) {
	.site-container {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.category-cards-grid {
		grid-template-columns: 1fr;
	}

	.explained-grid {
		grid-template-columns: 1fr;
	}

	.energy-author-box {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
		align-items: center;
	}

	.supporting-card {
		flex-direction: column;
	}

	.supporting-thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.header-icon-btn .search-btn-label {
		display: none;
	}

	.site-title-wrap .brand-link {
		font-size: 1.25rem;
	}
}

/* ========================================================
   BREAKPOINT: Min-width 1440px (High-Resolution Screens)
   ======================================================== */
@media (min-width: 1440px) {
	:root {
		--container-max: 1320px;
	}

	.entry-content {
		font-size: 1.15rem;
	}
}
