/* Detay Layout */
.news-detail { padding: 40px 0; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* Haber Başlığı */
.news-header { margin-bottom: 24px; }
.news-category-tag {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.news-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 18px;
}
.news-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
    align-items: center;
}
.news-meta span { display: flex; align-items: center; gap: 8px; }
.news-meta i { color: var(--primary); }
.news-share {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.news-share a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    transition: transform 0.3s;
}
.news-share a:hover { transform: translateY(-3px); }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-li { background: #0077b5; }

/* Kapak Resmi */
.news-featured {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}
.news-featured img { width: 100%!important; height: auto; display: block; }

/* İçerik */
.news-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}
.news-body p { margin-bottom: 20px; }
.news-body h2, .news-body h3 { color: var(--primary); margin: 28px 0 14px; }
.news-body img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.news-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-100);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

/* PDF'ler */
.news-documents {
    margin-top: 30px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
}
.news-documents h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-documents ul { list-style: none; }
.news-documents li { margin-bottom: 10px; }
.news-documents a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}
.news-documents a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}
.news-documents a i:first-child { color: #dc3545; font-size: 1.2rem; }
.news-documents a i:last-child { margin-left: auto; }

/* Galeri */
.gallery-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid var(--primary);
}
.gallery-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.gallery-item {
    flex: 0 0 240px;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--gray-200);
    transition: transform 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.widget-header {
    background: var(--gradient);
    color: var(--white);
    padding: 14px 20px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-header i { color: var(--gold); }
.widget-body { padding: 16px; }

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { padding-left: 5px; }
.related-thumb {
    width: 70px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: var(--gray-200);
}
.related-item h5 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.related-item:hover h5 { color: var(--primary); }
.related-item span { font-size: 0.7rem; color: var(--gray-500); }

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .news-header h1 { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .news-header h1 { font-size: 1.4rem; }
    .news-meta { flex-direction: column; gap: 10px; align-items: flex-start; }
    .news-share { margin-left: 0; }
    .gallery-item { flex: 0 0 200px; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 14px;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 16px; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-close { top: 10px; right: 10px; }
}
/* ============ NEWS ACTIONS ============ */
.news-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--primary);
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.print-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 155, 214, 0.3);
}

.print-btn i {
    font-size: 0.9rem;
}

/* Mobilde */
@media (max-width: 768px) {
    .news-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    
    .print-btn {
        width: 100%;
        justify-content: center;
    }
}

/* WP DEN GELEN METİN İÇİ TAGLARI EZMEK İÇİN */
/* Haber detay içeriği */
.news-body,
.news-content,
.detail-content {
    /* Taşmayı engelle */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    
    /* Genişlik taşmasını engelle */
    max-width: 100%;
    overflow: hidden;
}

/* İçerikteki tüm elementler kapsayıcıya sığsın */
.news-body img,
.news-body iframe,
.news-body video,
.news-body table,
.news-body pre,
.news-body blockquote {
    max-width: 100% !important;
    height: auto !important;
}

/* iframe'ler için özel: 16:9 oranı koru */
.news-body iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Tablolar için: yatay scroll */
.news-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* Uzun linkler kırılsın */
.news-body a {
    word-break: break-all;
}

/* Float'ları temizle */
.news-body::after {
    content: '';
    display: table;
    clear: both;
}

/* Inline style'ları ez */
.news-body * {
    max-width: 100% !important;
    box-sizing: border-box;
}