/* =========================================================
   IAFF Skyline - Responsive
   موبایل (≤480px) | تبلت (481-1024px) | دسکتاپ (≥1025px)
   ========================================================= */

/* ---------- دسکتاپ به بالا: نمایش عناصر کامل ---------- */
@media (min-width: 1025px) {
	.iaff-mega-nav { display: block; }
	.logo-desktop { display: block; }
	.logo-mobile { display: none; }
	.header-social { display: flex; }
	.mobile-only { display: none; }
	.iaff-mobile-menu { display: none; }
}

/* ---------- تبلت (481px - 1024px): منوی همبرگری، دو ستونی ---------- */
@media (max-width: 1024px) {
	.iaff-mega-nav { display: none; }
	.logo-desktop { display: none; }
	.logo-mobile { display: block; }
	.header-social { display: none; }
	.mobile-only { display: flex; }

	.hud-card-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-grid { grid-template-columns: repeat(2, 1fr); }
	.content-with-sidebar { grid-template-columns: 1fr; }
	.widget-area { position: static; flex-direction: row; flex-wrap: wrap; }
	.iaff-widget { flex: 1 1 260px; }

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

	.social-share-sticky { float: none; flex-direction: row; margin-inline-end: 0; width: auto; justify-content: center; margin-bottom: 24px; position: static; }

	.single-title { font-size: 26px; }
	.single-hero-media { height: 40vh; min-height: 260px; }

	/* داشبورد صفحه اصلی */
	.dash-top-row { grid-template-columns: 1fr; }
	.dash-hero-slide, .iaff-hero-fade, .iaff-hero-fade:not(.is-initialized) .splide__slide { height: 380px; }
	.dash-news-row { grid-template-columns: 1fr; }
	.dash-news-main { order: 1; }
	.dash-news-videos { order: 2; }
	.news-card-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-bar { grid-template-columns: repeat(3, 1fr); }
	.quicklinks-icons { flex-wrap: wrap; }
	.header-actions-start .header-lang-switch { display: none; }
}

@media (min-width: 481px) and (max-width: 1024px) {
	.hud-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- موبایل (≤480px): تک‌ستونی، آکاردئونی، حذف Three.js سنگین ---------- */
@media (max-width: 480px) {
	.container, .iaff-home-container, .iaff-page-container { padding-inline: 16px; }
	.header-inner { padding-inline: 16px; }

	.hud-card-grid { grid-template-columns: 1fr; gap: 16px; }
	.featured-grid { grid-template-columns: 1fr; }
	.footer-columns { grid-template-columns: 1fr; }

	.iaff-coverflow { padding: 0 16px; }
	.hero-slide-link { height: 300px; }
	.hero-slide-title { font-size: 20px; }
	.iaff-coverflow-arrows .splide__arrow { width: 38px; height: 38px; }

	.single-title { font-size: 21px; }
	.single-hero-content { margin-top: -110px; }
	.single-hero-media { height: 32vh; min-height: 200px; }

	.section-title { font-size: 18px; }
	.archive-title { font-size: 22px; }

	/* حذف بصری کانتینر سه‌بعدی سنگین در موبایل (کنترل واقعی در main.js انجام می‌شود) */
	.iaff-hero-canvas, .footer-3d-map canvas { display: none; }

	.footer-3d-map { height: 0; }
	.footer-content { margin-top: 0; }

	.mega-panel { position: static; min-width: 100%; }

	/* داشبورد صفحه اصلی - موبایل */
	.dash-hero-slide, .iaff-hero-fade, .iaff-hero-fade:not(.is-initialized) .splide__slide { height: 300px; }
	.dash-hero-title { font-size: 21px; }
	.dash-hero-excerpt { display: none; }
	.dash-hero-content { bottom: 20px; }
	.news-card-grid { grid-template-columns: 1fr; }
	.stats-bar { grid-template-columns: repeat(2, 1fr); }
	.quicklinks-inner { flex-direction: column; }
	.quicklink-item { border-left: none; border-bottom: 1px solid var(--iaff-border); padding: 14px 16px; }
	.quicklinks-ticker { padding: 10px 16px; }
	.header-user-pill span { display: none; }
}

/* ---------- آکاردئونی موبایل ---------- */
.accordion-menu li.has-children > a::after {
	content: '\f078';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	float: left;
	transition: transform 0.25s;
}
.accordion-menu li.accordion-open > a::after { transform: rotate(180deg); }
