/* ==========================================================================
   HABER DETAY STYLES
   ========================================================================== */

.mepa-haber-single {
    background: #fff;
    padding: 40px 0 60px;
}

.mepa-haber-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

/* Sidebar */
.mepa-haber-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mepa-haber-sidebar .mepa-sidebar-widget {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.mepa-haber-sidebar .mepa-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.mepa-haber-sidebar .mepa-widget-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mepa-haber-sidebar .mepa-widget-toggle {
    color: #666;
    transition: transform 0.3s ease;
}

.mepa-haber-sidebar .mepa-widget-header.collapsed .mepa-widget-toggle {
    transform: rotate(-90deg);
}

/* Kategori Listesi */
.mepa-kategori-list,
.mepa-arsiv-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mepa-kategori-item {
    border-bottom: 1px solid #f0f0f0;
}

.mepa-kategori-item:last-child {
    border-bottom: none;
}

.mepa-kategori-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--mepa-primary-color, #00a8e2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mepa-kategori-link:hover {
    background: #f8f9fa;
}

.mepa-kategori-item.active .mepa-kategori-link {
    background: #f8f9fa;
}

.mepa-kategori-item.active .mepa-toggle-icon i {
    transform: rotate(90deg);
}

.mepa-toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mepa-toggle-icon i {
    transition: transform 0.3s ease;
}

.mepa-count {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* Alt haber listesi */
.mepa-haber-alt-list {
    list-style: none;
    margin: 0;
    padding: 0 20px 15px 35px;
    background: #fafafa;
}

.mepa-haber-alt-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.mepa-haber-alt-list li:last-child {
    border-bottom: none;
}

.mepa-haber-alt-list a {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.5;
}

.mepa-haber-alt-list a:hover {
    color: var(--mepa-primary-color, #00a8e2);
}

/* Arşiv listesi */
.mepa-arsiv-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mepa-arsiv-list li:last-child {
    border-bottom: none;
}

.mepa-arsiv-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mepa-arsiv-list a:hover {
    color: var(--mepa-primary-color, #00a8e2);
    background: #f8f9fa;
}

/* İçerik Alanı */
.mepa-haber-content {
    min-width: 0;
}

/* Galeri */
.mepa-haber-gallery {
    margin-bottom: 30px;
}

.mepa-gallery-main {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.mepa-gallery-main a {
    display: block;
}

.mepa-gallery-main .mepa-main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.mepa-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mepa-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.mepa-thumb-item.active,
.mepa-thumb-item:hover {
    border-color: var(--mepa-primary-color, #00a8e2);
}

.mepa-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Image */
.mepa-haber-featured {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.mepa-haber-featured img {
    width: 100%;
    height: auto;
    display: block;
}

/* Başlık ve Meta */
.mepa-haber-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.mepa-haber-title {
    margin: 0 0 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.mepa-haber-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666;
}

.mepa-haber-meta i {
    color: var(--mepa-primary-color, #00a8e2);
    margin-right: 6px;
}

.mepa-haber-meta a {
    color: var(--mepa-primary-color, #00a8e2);
    text-decoration: none;
}

.mepa-haber-meta a:hover {
    text-decoration: underline;
}

/* İçerik Body */
.mepa-haber-body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.mepa-haber-body p {
    margin-bottom: 1.5em;
}

.mepa-haber-body h2,
.mepa-haber-body h3,
.mepa-haber-body h4 {
    margin: 1.5em 0 0.8em;
    color: #111;
}

.mepa-haber-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.mepa-haber-body ul,
.mepa-haber-body ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.mepa-haber-body li {
    margin-bottom: 0.5em;
}

/* Diğer Haberler */
.mepa-diger-haberler {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.mepa-section-title {
    margin: 0 0 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.mepa-diger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mepa-diger-item {
    display: block;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mepa-diger-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mepa-diger-image {
    aspect-ratio: 16 / 9;
    background: #f5f7fa;
}

.mepa-diger-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mepa-diger-image .mepa-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.mepa-diger-info {
    padding: 15px 18px;
}

.mepa-diger-date {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: var(--mepa-primary-color, #00a8e2);
    margin-bottom: 6px;
}

.mepa-diger-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .mepa-haber-layout {
        grid-template-columns: 1fr;
    }

    .mepa-haber-sidebar {
        order: -1;
    }

    .mepa-diger-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mepa-haber-title {
        font-size: 22px;
    }

    .mepa-gallery-main .mepa-main-image {
        height: 300px;
    }

    .mepa-diger-grid {
        grid-template-columns: 1fr;
    }

    .mepa-haber-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
