/*
Theme Name: Hanbey Haber
Theme URI: https://malatyamhaber.com
Author: Hanbey Group Medya
Author URI: https://malatyamhaber.com
Description: Yüksek performanslı özel WordPress haber teması.
Version: 1.3.8
Text Domain: malatyamhaber
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: #222; background: #ffffff; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Header & Menü */
.site-header { background: #fff; border-bottom: 2px solid #e60000; }
.top-bar { background: #fff; border-bottom: 1px solid #eee; }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo h1 { font-size: 28px; color: #e60000; text-transform: uppercase; margin: 0; }

.main-navigation { background: #111; color: #fff; }
.main-navigation ul { display: flex; list-style: none; padding: 0; margin: 0; }
.main-navigation ul li a { display: block; padding: 12px 18px; color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; transition: background 0.2s; }
.main-navigation ul li a:hover { background: #e60000; }

/* Manşet ve Manşet Yanı Yerleşimi */
.manset-top-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 25px;
    align-items: stretch;
    width: 100%;
}

.manset-main-col {
    flex: 1 1 auto;
    width: calc(100% - 340px);
    min-width: 0;
}

.manset-side-col {
    width: 320px;
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.manset-side-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}

.manset-side-item:hover {
    background: #fcfcfc;
}

.manset-side-item:hover h4 {
    color: #e60000;
}

.manset-side-img {
    width: 115px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #f0f0f0;
}

.manset-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manset-side-body {
    flex: 1;
    min-width: 0;
}

.manset-side-body h4 {
    font-size: 12px;
    color: #222;
    line-height: 1.35;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Manşet Slider (16:9) */
.manset-wrapper { position: relative; background: #000; overflow: hidden; border-radius: 4px; width: 100%; }
.manset-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.manset-slide { display: none; width: 100%; height: 100%; position: relative; }
.manset-slide.active { display: block; }
.manset-slide img { width: 100%; height: 100%; object-fit: cover; }
.manset-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.92)); color: #fff; }
.manset-spot { display: inline-block; background: #e60000; color: #fff; padding: 3px 10px; font-size: 12px; font-weight: bold; margin-bottom: 8px; text-transform: uppercase; border-radius: 2px; }
.manset-caption h2 { font-size: 22px; line-height: 1.3; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

.manset-nav { 
    display: flex; 
    list-style: none; 
    background: #111; 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    overflow-x: auto;
    white-space: nowrap;
}
.manset-nav .nav-item { 
    flex: 1 0 auto; 
    min-width: 35px; 
    text-align: center; 
    color: #fff; 
    padding: 10px 0; 
    cursor: pointer; 
    border-right: 1px solid #222; 
    font-weight: bold; 
    font-size: 14px; 
    transition: background 0.2s; 
}
.manset-nav .nav-item:last-child { border-right: none; }
.manset-nav .nav-item:hover, .manset-nav .nav-item.active { background: #e60000; }

/* Ana Sayfa Düzeni & Kategori Blokları */
.main-wrapper { 
    display: flex; 
    gap: 20px; 
    margin-top: 20px; 
    align-items: flex-start;
    width: 100%;
}
.content-area { flex: 1; min-width: 0; width: 100%; }
.sidebar-area { 
    width: 300px; 
    flex-shrink: 0; 
    position: sticky;
    top: 20px;
}

.kategori-block { background: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 25px; border: 1px solid #eee; }
.kat-title-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e60000; padding-bottom: 8px; margin-bottom: 15px; }
.kat-title-bar h3 { font-size: 18px; color: #111; text-transform: uppercase; margin: 0; }
.kat-title-bar h3 a { color: #111; }
.kat-title-bar .tumunu-gor { font-size: 16px; color: #e60000; font-weight: 700; }
.kat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.kat-grid.kat-grid-full { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.kat-card { background: #fdfdfd; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.kat-card-img { aspect-ratio: 16 / 9; overflow: hidden; width: 100%; background: #f0f0f0; }
.kat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kat-card-body { padding: 10px; }
.kat-card h4 { 
    font-size: 13px; 
    color: #222; 
    line-height: 1.4; 
    font-weight: 600; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Widget'lar & Footer */
.widget-box, .widget { background: #fff; padding: 15px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #eee; }
.site-footer { background: #111; color: #aaa; margin-top: 40px; padding-top: 40px; font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-col h3 { color: #fff; margin-bottom: 10px; font-size: 22px; }
.footer-title { color: #fff; font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #e60000; padding-bottom: 5px; display: inline-block; }
.footer-nav ul, .footer-news-list { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-news-list li { margin-bottom: 8px; }
.footer-nav a, .footer-news-list a { color: #ccc; transition: color 0.2s; }
.footer-nav a:hover, .footer-news-list a:hover { color: #e60000; }
.footer-bottom { background: #080808; border-top: 1px solid #222; padding: 15px 0; text-align: center; font-size: 13px; color: #777; }

/* Haber Detayı: İlginizi Çekebilir Kutusu */
.ilginizi-cekebilir-wrapper {
    margin-top: 35px;
    margin-bottom: 30px;
    clear: both;
    width: 100%;
}

.single-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #ce1818;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.related-card {
    display: block;
    width: 100%;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.related-card a {
    text-decoration: none;
    color: #222;
    display: block;
}

.related-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 10px;
}

.related-card-body h4 {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Yorum Alanı */
.comments-wrapper,
.comments-area-custom {
    margin-top: 35px;
    padding-top: 10px;
    clear: both;
    width: 100%;
}

.comments-title-custom { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 15px; border-bottom: 2px solid #e60000; padding-bottom: 5px; display: inline-block; }
.comment-form-container { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); margin-bottom: 30px; width: 100%; }
.comment-form-container form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.comment-form-field textarea, .comment-form-field input[type="text"] { width: 100%; background-color: #fcfcfc; border: 1px solid #dcdcdc; border-radius: 4px; padding: 12px 15px; font-size: 14px; color: #333; font-family: inherit; outline: none; transition: all 0.2s ease; box-sizing: border-box; }
.comment-form-field textarea { height: 110px; resize: vertical; }
.comment-form-field textarea:focus, .comment-form-field input[type="text"]:focus { background-color: #fff; border-color: #111; box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.submit-btn-custom { align-self: flex-start; background-color: #1a202c; color: #ffffff; font-weight: 600; font-size: 14px; padding: 10px 24px; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease; margin-top: 5px; }
.submit-btn-custom:hover { background-color: #e60000; }
.comment-disclaimer-box { background-color: #fffbeb; border: 1px solid #fef3c7; color: #b45309; font-size: 12px; line-height: 1.5; padding: 12px 15px; border-radius: 4px; margin-top: 15px; }
.comments-list-wrapper { margin-top: 30px; width: 100%; }
.existing-comments-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; }
.comment-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.comment-list .comment { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 6px; padding: 15px; margin-bottom: 15px; }
.comment-list .comment-author { font-weight: 700; font-size: 14px; color: #1a202c; margin-bottom: 5px; }
.comment-list .comment-meta { font-size: 11px; color: #a0aec0; margin-bottom: 10px; }
.comment-list p { font-size: 14px; color: #4a5568; line-height: 1.5; margin: 0; }

/* Manşet Yanı Bileşen Kutusu */
.manset-side-col .widget-box,
.manset-side-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manset-side-col .widget-box ul,
.manset-side-col .widget ul,
.manset-side-col .widget-box li,
.manset-side-col .widget li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.manset-side-col .widget-box a,
.manset-side-col .widget a {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 6px 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
}

.manset-side-col .widget-box img,
.manset-side-col .widget img {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 0;
}

.manset-side-col .widget-box h4,
.manset-side-col .widget h4 {
    font-size: 12px;
    color: #222;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Yazar Biyografi Kutusu */
.single-author-box {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-top: 35px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.single-author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e60000;
}
.single-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-author-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
}
.single-author-details .author-job-title {
    font-size: 12px;
    color: #e60000;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.single-author-details p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Medya Sorguları / Responsive Düzenlemeler */
@media (max-width: 992px) {
    .manset-top-grid { flex-direction: column; }
    .manset-main-col { width: 100%; }
    .manset-side-col { width: 100%; flex: 1 1 100%; }
    .kat-grid.kat-grid-full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container, 
    .container.main-wrapper,
    .site-header .container,
    .header-main {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .main-wrapper { 
        flex-direction: column !important; 
        gap: 0 !important;
        margin-top: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    article.content-area.single-post,
    .content-area {
        padding: 4px 4px !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }

    .sidebar-area { 
        width: 100% !important; 
        max-width: 100% !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }

    .kat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr; gap: 20px; }
    .main-navigation ul { flex-wrap: wrap; }
    .manset-caption h2 { font-size: 16px; }
    .related-posts-grid { grid-template-columns: repeat(1, 1fr); }
    .yazarlar-grid { grid-template-columns: repeat(1, 1fr); }

    /* YouTube ve Gömülü Videolar İçin Kesin Esnek Çözüm */
    .single-video-container,
    .video-icerik,
    .wp-block-embed,
    .wp-block-embed__wrapper,
    .wp-block-embed-youtube,
    .elementor-video,
    iframe[src*="youtube.com"],
    iframe[src*="youtu.be"],
    .entry-content iframe,
    .entry-content video,
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        max-height: none !important;
        min-height: auto !important;
        float: none !important;
        display: block !important;
        margin: 10px 0 !important;
    }

    .single-video-title,
    .video-baslik {
        position: relative !important;
        inset: auto !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        background: #fff !important;
        color: #222 !important;
        padding: 5px 0 !important;
        text-shadow: none !important;
        z-index: 1 !important;
    }
}