/* Responsive Styles - خبرکاکاوند */

@media (max-width: 1024px) {
    .main-content-area .container {
        grid-template-columns: minmax(0, 1fr) 250px !important;
    }
    .column-ads {
        display: none;
    }
    .slider-section .container {
        grid-template-columns: 1fr;
    }
    .slider-side {
        flex-direction: row;
    }
    .side-widget {
        flex: 1;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content-area .container,
    .main-content-area .container.single-container {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .column-widgets {
        order: 3;
    }
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--nav-bg, #0f3460);
        z-index: 100;
    }
    .nav-menu.active,
    .nav-menu.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .news-list-item {
        flex-direction: column;
    }
    .news-list-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
    .news-list-item img {
        width: 100%;
        height: var(--news-thumb-h-m, 210px);
        aspect-ratio: auto;
    }
    .footer-top .container {
        grid-template-columns: 1fr 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-item img {
        height: var(--slider-h-m, 340px);
    }
    .side-thumb-link {
        flex-basis: 130px;
        height: 100px;
    }
    .slider-overlay h2 {
        font-size: 1rem;
    }
    .post-title {
        font-size: 1.2rem;
    }
    .post-meta-bar {
        flex-direction: column;
        gap: 8px;
    }
    .reporter-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .reporter-info h4,
    .reporter-rating { justify-content: center; }
    .authors-toggle span { display: none; }
    .authors-toggle { padding: 12px 14px; font-size: 1rem; }
    .authors-float.pos-right { right: 12px; bottom: 72px; }
    .authors-float.pos-left { left: 12px; }
    .social-share {
        justify-content: center;
    }
    .ticker-content {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .footer-top .container {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-tabs {
        flex-wrap: wrap;
    }
    .header-top .container {
        flex-direction: column;
        gap: 8px;
    }
    .side-widget {
        min-width: 100%;
    }
    .slider-side {
        flex-direction: column;
    }
    .post-actions {
        justify-content: center;
    }
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .notification-badge {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}


/* =====================================================
   اصلاح موبایل: صفحه تک خبر هم‌اندازه صفحه اصلی
   (علت کوچک شدن: محتوای عریض مثل عکس/جدول/iframe باعث
   بزرگ‌تر شدن عرض صفحه و کوچک‌نمایی مرورگر می‌شد)
   ===================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }

.main-content-area .container > *,
.slider-section .container > * { min-width: 0; }

.kk-single-card { max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
.post-content { max-width: 100%; overflow-wrap: break-word; }
.post-content img,
.post-content video,
.post-content embed,
.post-content object,
.post-content figure,
.post-content .wp-caption,
.post-content iframe { max-width: 100% !important; }
.post-content img,
.post-content video { height: auto; }
.post-content iframe { width: 100%; }
.post-content .wp-caption,
.post-content figure { width: auto !important; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; }
.post-content pre { max-width: 100%; overflow-x: auto; }

.post-actions,
.social-share,
.breadcrumb .container { flex-wrap: wrap; }
.breadcrumb span { overflow-wrap: anywhere; }

@media (max-width: 768px) {
    .main-content-area { padding: 15px 0; }
    .kk-single-card { padding: 20px; }
    .post-meta-bar { flex-direction: row; flex-wrap: wrap; gap: 8px 15px; }
    .post-thumbnail img { width: 100%; }
}

/* عرض کامل هدر و بخش‌های اصلی در موبایل */
.site-header, .main-navigation, .breaking-news, .header-top, .header-main { width: 100%; max-width: 100%; box-sizing: border-box; }
