/* ===== POST DETAIL MOBILE OPTIMIZATION ===== */

/* Mobile First Approach */
@media (max-width: 768px) {
    /* Navbar spacing fix */
    .post-detail-section {
        padding: 100px 0 50px !important;
    }

    /* Container padding */
    .post-detail-section .container {
        padding: 0 15px;
    }

    /* Post content spacing */
    .post-content {
        padding: 25px 20px !important;
        border-radius: 12px !important;
    }

    /* Title responsive */
    .post-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* Category badge */
    .post-category {
        font-size: 10px !important;
        padding: 6px 15px !important;
        margin-bottom: 15px !important;
    }

    /* Meta info stack */
    .post-meta {
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 15px !important;
    }

    .post-meta span {
        font-size: 13px !important;
    }

    /* Featured image */
    .post-featured-image {
        margin-bottom: 25px !important;
        border-radius: 10px !important;
    }

    .post-featured-image img {
        max-height: 250px !important;
    }

    /* Post body text */
    .post-body {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .post-body p {
        margin-bottom: 15px !important;
        text-align: left !important;
    }

    .post-body h2 {
        font-size: 20px !important;
        margin: 25px 0 15px !important;
    }

    .post-body h3 {
        font-size: 18px !important;
        margin: 20px 0 12px !important;
    }

    .post-body h4 {
        font-size: 16px !important;
        margin: 18px 0 10px !important;
    }

    .post-body ul,
    .post-body ol {
        padding-left: 20px !important;
        margin: 15px 0 !important;
    }

    .post-body li {
        margin-bottom: 10px !important;
    }

    .post-body img {
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    /* Share section */
    .post-share {
        margin-top: 35px !important;
        padding-top: 30px !important;
    }

    .post-share h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .share-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .share-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }

    .widget-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
    }

    /* Related posts */
    .related-post-item {
        padding: 10px !important;
    }

    .related-post-image {
        width: 65px !important;
        height: 65px !important;
    }

    .related-post-content h4 {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .related-post-date {
        font-size: 11px !important;
    }

    /* Back button */
    .btn-block {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px !important;
        margin-bottom: 20px !important;
        gap: 8px !important;
    }

    .breadcrumb i {
        font-size: 11px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .post-detail-section {
        padding: 90px 0 40px !important;
    }

    .post-content {
        padding: 20px 15px !important;
    }

    .post-title {
        font-size: 20px !important;
    }

    .post-body {
        font-size: 14px !important;
    }

    .post-body h2 {
        font-size: 18px !important;
    }

    .post-body h3 {
        font-size: 16px !important;
    }

    .post-body h4 {
        font-size: 15px !important;
    }

    .related-post-image {
        width: 60px !important;
        height: 60px !important;
    }

    .related-post-content h4 {
        font-size: 12px !important;
    }

    .breadcrumb {
        font-size: 11px !important;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .post-detail-section {
        padding: 120px 0 70px !important;
    }

    .post-content {
        padding: 40px 35px !important;
    }

    .post-title {
        font-size: 32px !important;
    }

    .post-body {
        font-size: 16px !important;
    }
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
    .post-detail-section .container {
        max-width: 1300px;
    }

    .post-detail-wrapper {
        grid-template-columns: 1fr 380px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .chat-widget,
    .post-share,
    .post-sidebar,
    .breadcrumb {
        display: none !important;
    }

    .post-detail-section {
        padding: 20px 0 !important;
    }

    .post-content {
        box-shadow: none !important;
        padding: 0 !important;
    }

    .post-body {
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }
}
