/* =========================================================
 * File: 99-media.css
 * مقصد: فائنل رسپانسیو، عالمی موبائل ایڈجسٹمنٹس، موشن اور پرنٹ اسٹائلز
 * نوٹ: header/footer کے مخصوص responsive rules اب اپنی الگ فائلوں میں ہوں گے۔
 * ========================================================= */

/* ───────────── 1. MOBILE TYPOGRAPHY & GLOBAL LAYOUT ───────────── */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: clip;
        width: 100%;
        position: relative;
    }

    .container,
    .wrap,
    .smd-container,
    .archive-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 12px !important;
        box-sizing: border-box !important;
    }

    [style*="width:100vw"],
    .full-width {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }
}

/* ───────────── 2. DARK MODE VISUAL ENHANCEMENTS ───────────── */
@media (prefers-color-scheme: dark) {
    .card,
    .tile-like,
    .smd-card,
    .post-entry {
        background: var(--surface) !important;
        border-color: var(--border) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    }

    img {
        filter: brightness(.8) contrast(1.1);
    }
}

/* ───────────── 3. ACCESSIBILITY & MOTION ───────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ───────────── 4. PRINT STYLES ───────────── */
@media print {
    .site-header,
    .smd-main-footer,
    .newsbar,
    .social-share,
    .footer-widgets {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #1D4ED8;
    }
}