/**
 * Detay sayfası — mobil / dar ekran (ana içerik + ilgili içerikler sidebar)
 */

@media (max-width: 991.98px) {
    .detail-section {
        min-height: auto;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .detail-section .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    }

    .detail-section .col-lg-8,
    .detail-section .col-lg-4 {
        padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
    }

    .detail-section .elegant-breadcrumb {
        margin-bottom: 1rem !important;
    }

    .detail-section .breadcrumb-elegant {
        padding: 0.75rem 1rem !important;
    }

    .detail-title {
        font-size: clamp(1.35rem, 5vw, 2rem) !important;
        line-height: 1.25 !important;
        word-break: break-word;
        hyphens: auto;
    }

    /* detay.php’de .detail-meta yerine .detail-meta-row kullanılıyor */
    .detail-section .detail-meta-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1.25rem;
        margin-top: 0.75rem;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    .detail-section .detail-meta-row span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .detail-header {
        padding-bottom: 1rem !important;
    }

    .detail-content {
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
    }

    .detail-section .content-text {
        font-size: 1rem !important;
    }

    .detail-section .content-text p {
        text-align: left !important;
        hyphens: auto;
    }

    .detail-section .content-text table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-sidebar {
        position: static !important;
        top: auto !important;
        margin-top: 1.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
        align-self: stretch !important;
        width: 100%;
        max-width: 100%;
        height: auto !important;
    }

    .detail-section .sidebar-widget {
        padding: 1.25rem 1rem !important;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-section .widget-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
    }

    .detail-section .widget-content {
        gap: 1rem;
    }

    .detail-section .related-item {
        flex-direction: column;
        padding: 0.85rem !important;
        gap: 0.75rem;
    }

    .detail-section .related-image {
        width: 100% !important;
        height: auto !important;
        min-height: 140px;
        max-height: 220px;
    }

    .detail-section .related-image img {
        width: 100%;
        height: 100%;
        min-height: 140px;
        max-height: 220px;
        object-fit: cover;
    }

    .detail-section .related-title {
        font-size: 0.95rem !important;
    }

    .detail-section .related-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 575.98px) {
    .detail-section {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .detail-section .container-fluid {
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
    }

    .detail-title {
        font-size: clamp(1.2rem, 6vw, 1.65rem) !important;
        margin-bottom: 0.75rem !important;
    }

    .detail-section .breadcrumb-elegant {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.85rem;
    }

    .breadcrumb-item-elegant:not(:last-child)::after {
        margin: 0 0.5rem !important;
    }

    .detail-section .detail-meta-row {
        font-size: 0.85rem;
        gap: 0.4rem 1rem;
    }

    .detail-content {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .detail-section .content-text {
        font-size: 0.95rem !important;
    }

    .detail-section .content-text h2 {
        font-size: 1.35rem !important;
    }

    .detail-section .sidebar-widget {
        padding: 1rem 0.75rem !important;
    }

    .detail-section .widget-title {
        font-size: 1.1rem !important;
    }

    .detail-section .related-item {
        padding: 0.75rem !important;
    }

    .detail-section .related-image {
        min-height: 120px;
        max-height: 180px;
    }

    .detail-section .related-image img {
        min-height: 120px;
        max-height: 180px;
    }

    .detail-section .related-title {
        font-size: 0.9rem !important;
    }

    .detail-section .related-excerpt {
        font-size: 0.8rem !important;
    }
}
