/*
Theme Name: Hanbey Haber
Theme URI: https://malatyamhaber.com
Author: Hanbey Group Medya
Author URI: https://malatyamhaber.com
Description: Yüksek performanslı, 16:9 manşet destekli, özel WordPress haber teması.
Version: 1.3.4
Text Domain: hanbeyhaber
*/

* { 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: #333; background: #f8f9fa; }
.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 (Reklamsız Saf Haber Alanı) */
.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: #000;
}

.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;
}
.content-area { flex: 1; min-width: 0; }
.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: 12px; color: #e60000; font-weight: bold; }
.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%; }
.kat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.kat-card:hover .kat-card-img img { transform: scale(1.05); }
.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; 
    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;
}

.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 !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
}

.related-card {
    display: block !important;
    width: 100% !important;
}

.related-card a {
    text-decoration: none;
    color: #222;
    display: block;
}

.related-card-img {
    width: 100%;
    height: 135px;
    overflow: hidden;
    border-radius: 4px;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body h4 {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
    font-weight: 600;
    color: #222;
}

/* Yorum Alanı */
.comments-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Mobil & Tablet Uyumluluğu */
@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) {
    .main-wrapper { flex-direction: column; }
    .sidebar-area { width: 100%; }
    .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) !important; }
}

/* Kurumsal Yorum Alanı Stilleri */
.comments-area-custom { margin-top: 35px; padding-top: 10px; clear: both; }
.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; }
.comment-form-container form { display: flex; flex-direction: column; gap: 12px; }
.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; }
.existing-comments-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.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 Kutusunu ve İçeriğini Yataya Zorlama */
.manset-side-col .widget-box,
.manset-side-col .widget {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Bileşen içindeki her bir haberi yatay kart formuna sok */
.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 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Eğer sağ alan hazır bir eklenti veya widget'tan geliyorsa her bir haber öğesi için: */
.manset-side-col .widget-box a,
.manset-side-col .widget a {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    background: #fff !important;
    padding: 6px 8px !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.manset-side-col .widget-box img,
.manset-side-col .widget img {
    width: 100px !important;
    min-width: 100px !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    margin: 0 !important;
}

.manset-side-col .widget-box h4,
.manset-side-col .widget h4 {
    font-size: 12px !important;
    color: #222 !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}