/**
 * AuraWrite - Responsive Styles (Dark Modern)
 * Mobile-first breakpoints
 *
 * @package AuraWrite
 */

/* ── Large Desktop (1200px+) ── */
@media (min-width: 1201px) {
	.aw-sticky-share {
		display: block;
	}
}

/* ── Desktop (max 1200px) ── */
@media (max-width: 1200px) {
	.aw-trending__grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

/* ── Tablet (max 992px) ── */
@media (max-width: 992px) {
	.aw-content-wrap {
		grid-template-columns: 1fr;
	}

	.aw-sidebar--left .aw-content-wrap {
		grid-template-columns: 1fr;
	}

	.aw-sidebar--left .aw-content-wrap .aw-sidebar {
		order: 0;
	}

	.aw-hero .aw-container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.aw-hero__title {
		font-size: 2.5rem;
	}

	.aw-featured-slide__img img {
		height: 300px;
	}

	.aw-newsletter__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

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

	.aw-sidebar {
		position: static;
	}
}

/* ── Tablet Small (max 768px) ── */
@media (max-width: 768px) {
	h1 { font-size: 1.85rem; }
	h2 { font-size: 1.45rem; }

	/* Navigation */
	.aw-nav__toggle {
		display: block;
	}

	.aw-nav__list {
		display: none;
		position: absolute;
		top: var(--aw-header-height);
		left: 0;
		right: 0;
		background: var(--aw-glass-strong);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 16px;
		gap: 0;
		box-shadow: 0 16px 40px rgba(0,0,0,.35);
		border-top: 1px solid var(--aw-glass-border);
		border-bottom: 1px solid var(--aw-glass-border);
	}

	.aw-nav__list.is-open {
		display: flex;
		animation: aw-fadeInUp .25s ease;
	}

	.aw-nav__list li a {
		padding: 14px 18px;
		border-radius: var(--aw-radius-sm);
		border-bottom: 1px solid var(--aw-border-light);
	}

	.aw-nav__list li:last-child a {
		border-bottom: none;
	}

	.aw-nav__list .sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 20px;
		display: block;
		background: transparent;
		backdrop-filter: none;
		border: none;
	}

	/* Posts */
	.aw-posts--grid {
		grid-template-columns: 1fr;
	}

	.aw-posts--list .aw-card {
		grid-template-columns: 1fr;
	}

	/* Related */
	.aw-related__grid {
		grid-template-columns: 1fr;
	}

	/* Trending */
	.aw-trending__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.aw-trending__item {
		padding: 16px;
	}

	/* Single */
	.aw-single__title {
		font-size: 1.85rem;
	}

	.aw-single__meta {
		gap: 12px;
	}

	/* Author Box */
	.aw-author-box {
		flex-direction: column;
		text-align: center;
		align-items: center;
		padding: 28px;
	}

	.aw-author-box::before {
		width: 100%;
		height: 3px;
		bottom: auto;
		right: 0;
	}

	/* Footer */
	.aw-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.aw-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 18px;
	}

	.aw-footer__menu {
		justify-content: center;
		flex-wrap: wrap;
	}

	/* Share */
	.aw-share__btn span {
		display: none;
	}

	/* TOC */
	.aw-toc {
		padding: 20px;
	}

	/* 404 */
	.aw-404__code {
		font-size: 6rem;
	}

	.aw-404 {
		padding: 50px 0;
	}

	/* Hero */
	.aw-hero {
		padding: 50px 0 40px;
	}

	.aw-hero__title {
		font-size: 2rem;
	}

	.aw-hero__subtitle {
		font-size: .95rem;
	}

	/* Featured Slider */
	.aw-featured-slide__title {
		font-size: 1.15rem;
	}

	.aw-featured-slide__excerpt {
		display: none;
	}

	.aw-featured-slide__img img {
		height: 260px;
	}

	/* Archive */
	.aw-archive-header {
		padding: 24px;
	}

	.aw-archive-header__title {
		font-size: 1.65rem;
	}

	/* Featured Categories */
	.aw-featured-cats__grid {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 10px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.aw-featured-cats__grid::-webkit-scrollbar {
		display: none;
	}

	.aw-featured-cats__item {
		white-space: nowrap;
		flex-shrink: 0;
	}

	/* Breadcrumbs */
	.aw-breadcrumb__list {
		padding: 10px 16px;
		font-size: .78rem;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {
	:root {
		--aw-radius: 12px;
		--aw-radius-sm: 8px;
		--aw-radius-lg: 16px;
	}

	.aw-container {
		padding: 0 16px;
	}

	.aw-main {
		padding: 28px 0;
	}

	.aw-card__body {
		padding: 16px;
	}

	.aw-card__thumb img {
		height: 190px;
	}

	.aw-card__title {
		font-size: 1.02rem;
	}

	.aw-card__excerpt {
		font-size: .84rem;
	}

	.aw-single__content {
		font-size: .98rem;
	}

	.aw-hero__title {
		font-size: 1.65rem;
	}

	.aw-hero {
		padding: 40px 0 30px;
	}

	.aw-featured-slide__content {
		padding: 24px 20px 20px;
	}

	.aw-featured-slide__img img {
		height: 220px;
	}

	.aw-featured-slide__title {
		font-size: 1.02rem;
	}

	.aw-newsletter {
		padding: 48px 0;
	}

	.aw-newsletter__heading {
		font-size: 1.5rem;
	}

	.aw-share__buttons {
		gap: 6px;
	}

	.aw-share__btn {
		padding: 8px;
	}

	.aw-widget {
		padding: 18px;
	}

	.aw-comments .children {
		padding-left: 14px;
	}

	.aw-comment__body {
		padding: 16px;
	}

	.aw-pagination .nav-links a,
	.aw-pagination .nav-links span {
		min-width: 36px;
		height: 36px;
		font-size: .8rem;
	}

	.aw-footer__widgets {
		padding: 34px 0 24px;
	}

	.aw-btn--hero {
		padding: 12px 26px;
		font-size: .88rem;
	}

	.aw-trending__num {
		font-size: 1.75rem;
	}

	.aw-single__title {
		font-size: 1.5rem;
	}

	.aw-page__title {
		font-size: 1.75rem;
	}

	.aw-section-header__title {
		font-size: 1.1rem;
	}
}

/* ── Print Styles ── */
@media print {
	.aw-header,
	.aw-nav,
	.aw-sidebar,
	.aw-footer,
	.aw-share,
	.aw-sticky-share,
	.aw-progress-bar,
	.aw-back-to-top,
	.aw-newsletter,
	.aw-related,
	.aw-trending,
	.aw-hero,
	.aw-ad-inline,
	.aw-header-ad-wrap,
	.aw-footer-ad-wrap,
	.aw-sidebar-ad,
	.aw-toc,
	.aw-pagination,
	.aw-post-navigation,
	.aw-comments,
	.aw-featured-cats,
	.aw-breadcrumbs {
		display: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
		background: #fff;
	}

	.aw-content-wrap {
		display: block;
	}

	h1, h2, h3, h4, h5, h6 {
		color: #000;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: .8em;
		color: #666;
	}

	img {
		max-width: 100%;
		page-break-inside: avoid;
	}

	h1, h2, h3 {
		page-break-after: avoid;
	}
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.aw-hero::before,
	.aw-hero::after {
		animation: none;
	}
}

/* ── High Contrast ── */
@media (prefers-contrast: high) {
	:root {
		--aw-border: rgba(255,255,255,.3);
		--aw-text: #fff;
		--aw-text-light: #ddd;
	}

	.aw-card,
	.aw-widget,
	.aw-comment__body,
	.aw-trending__item {
		border-width: 2px;
		border-color: rgba(255,255,255,.3);
	}

	.aw-nav__list li.current-menu-item > a {
		outline: 2px solid var(--aw-primary);
	}
}
