/*
Theme Name:  İş Dünyası Haberleri
Theme URI:   https://zohi.net
Author:      Posenda
Author URI:  https://posenda.com
Description: İş Dünyası Haberleri için özel WordPress teması.
Version:     1.3.1
License:     GPL-2.0+
Text Domain: idh-tema
*/

/* ══ RESET ══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;overflow-x:hidden;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f5f4f1;color:#1a1a1a;line-height:1.6;min-height:100vh;overflow-x:hidden;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{cursor:pointer;font-family:inherit;}
.site-header,#site-header,.custom-header,#custom-header,.wp-custom-header,.header-image,#header,.site-branding,#masthead{display:none!important;}
body{margin-top:0!important;padding-top:0!important;}

/* ══ LAYOUT ══ */
.idh-app{display:grid;grid-template-columns:240px 1fr;min-height:100vh;overflow-x:hidden;}

/* ══ SIDEBAR ══ */
#idh-sidebar{background:#fff;border-right:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:100;width:240px;}
.idh-logo{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(0,0,0,.07);text-decoration:none;min-height:64px;}
.idh-logo:hover{opacity:.88;}
.idh-logo-img{max-height:44px;width:auto;max-width:190px;object-fit:contain;display:block;}
.idh-logo-icon{width:32px;height:32px;background:#e63946;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.idh-logo-icon svg{width:16px;height:16px;fill:#fff;}
.idh-logo-text{font-size:15px;font-weight:600;color:#1a1a1a;line-height:1.2;}
.idh-logo-text span{font-weight:400;color:#999;}
.idh-sb-nav{padding:14px 10px;flex:1;}
.idh-sb-nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;font-size:13px;color:#555;font-weight:400;transition:background .12s,color .12s;white-space:nowrap;overflow:hidden;text-decoration:none;}
.idh-sb-nav-item:hover{background:#f5f4f1;color:#1a1a1a;}
.idh-sb-nav-item.aktif{background:#f5f4f1;color:#1a1a1a;font-weight:500;}
.idh-sb-nav-item svg{width:17px;height:17px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.idh-sb-section{font-size:10px;font-weight:600;color:#bbb;letter-spacing:1px;text-transform:uppercase;padding:14px 22px 6px;}
.idh-sb-kat{display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px;font-size:12.5px;color:#555;transition:background .12s;text-decoration:none;}
.idh-sb-kat:hover{background:#f5f4f1;color:#1a1a1a;}
.idh-sb-kat-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.idh-sb-footer{padding:14px 18px;border-top:1px solid rgba(0,0,0,.07);font-size:11px;color:#bbb;line-height:2;}
.idh-sb-footer a{color:#bbb;}
.idh-sb-footer a:hover{color:#555;}

/* ══ ANA İÇERİK ══ */
#idh-main{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;width:100%;min-width:0;}

/* ══ TICKER ══ */
#idh-ticker{background:#fff;border-bottom:1px solid rgba(0,0,0,.07);padding:0 22px;height:44px;display:flex;align-items:center;overflow:hidden;flex-shrink:0;}
.idh-ticker-inner{display:flex;align-items:center;gap:20px;min-width:0;overflow:hidden;}
.idh-tick-item{display:flex;align-items:center;gap:5px;white-space:nowrap;}
.idh-tick-label{font-size:10px;font-weight:600;color:#bbb;letter-spacing:.5px;text-transform:uppercase;}
.idh-tick-val{font-size:12px;font-weight:500;color:#1a1a1a;}
.idh-tick-chg{font-size:11px;}
.idh-tick-chg.up{color:#2e8b3e;}
.idh-tick-chg.dn{color:#e63946;}
.idh-tick-sep{width:1px;height:16px;background:rgba(0,0,0,.08);flex-shrink:0;}
.idh-tick-loading{font-size:11px;color:#bbb;}
.idh-tick-tip{font-size:9px;color:#bbb;margin-left:1px;}

/* ══ ANA SAYFA WRAPPER (index + search) ══ */
.idh-ana-wrap{max-width:800px;width:100%;}
.idh-ana-baslik-wrap{padding:28px 28px 0;}
.idh-page-title{font-size:22px;font-weight:600;color:#1a1a1a;margin-bottom:16px;}
.idh-ana-icerik{padding:4px 28px 60px;}
.idh-ana-icerik .idh-sayfalama{padding-left:78px;}
.idh-ana-icerik .idh-ay-ayrac{padding-left:78px;}


/* ══ TAB WRAP + SAĞ OK ══ */
.idh-tabs-wrap{
    display:flex;
    align-items:center;
    border-bottom:1px solid rgba(0,0,0,.08);
    position:relative;
}
.idh-tabs-wrap .idh-tabs{
    border-bottom:none;
    flex:1;
    min-width:0;
    padding-right:0;
}
.idh-tabs-ok{
    flex-shrink:0;
    width:36px;height:44px;
    background:linear-gradient(to right, transparent, #f5f4f1 40%);
    border:none;
    display:flex;align-items:center;justify-content:flex-end;
    color:#888;cursor:pointer;
    padding-right:6px;
    transition:color .15s;
}
.idh-tabs-ok:hover{color:#e63946;}
.idh-tabs-ok.gizli{opacity:0;pointer-events:none;}
/* ══ KATEGORİ TABLARI ══ */
.idh-tabs{display:flex;align-items:center;border-bottom:1px solid rgba(0,0,0,.08);overflow-x:auto;scrollbar-width:none;padding:0 28px;min-width:0;max-width:100%;}
.idh-tabs::-webkit-scrollbar{display:none;}
.idh-tab{padding:10px 16px;font-size:13px;font-weight:500;color:#888;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s;cursor:pointer;text-decoration:none;flex-shrink:0;}
.idh-tab:hover{color:#1a1a1a;}
.idh-tab.aktif{color:#e63946;border-bottom-color:#e63946;}

/* ══ HABER BÖLÜMÜ GENEL ══ */
.idh-haber-bos{padding:48px 0;text-align:center;color:#bbb;font-size:14px;}

/* ══ HABER SATIRI ══ */
.idh-haber-satir{
    display:flex;
    align-items:flex-start;
    padding:16px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
    text-decoration:none;
    color:inherit;
}
.idh-haber-satir:last-child{border-bottom:none;}
.idh-haber-satir:hover .idh-hs-baslik{color:#e63946;}

/* TARİH */
.idh-hs-tarih{
    width:52px;min-width:52px;flex-shrink:0;
    display:flex;flex-direction:column;align-items:center;
    padding-top:2px;padding-right:6px;
}
.idh-hs-gun{font-size:20px;font-weight:300;color:#1a1a1a;line-height:1;}
.idh-hs-ay{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:#bbb;margin-top:2px;}
.idh-hs-saat{font-size:9px;color:#d0ccc5;margin-top:2px;}

/* NOKTA */
.idh-hs-timeline{width:20px;min-width:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:5px;}
.idh-hs-dot{width:9px;height:9px;border-radius:50%;border:2px solid #f5f4f1;flex-shrink:0;}
.idh-hs-dot.son-dakika{animation:idh-pulse 1.3s infinite;}
@keyframes idh-pulse{0%,100%{box-shadow:0 0 0 0 rgba(230,57,70,.4);}50%{box-shadow:0 0 0 5px rgba(230,57,70,0);}}
.idh-hs-vline{width:1px;flex:1;min-height:24px;background:rgba(0,0,0,.07);margin-top:4px;}

/* GÖRSEL */
.idh-hs-gorsel{
    width:88px;min-width:88px;height:68px;
    border-radius:8px;overflow:hidden;flex-shrink:0;
    margin:0 12px 0 8px;
    display:flex;align-items:center;justify-content:center;
}
.idh-hs-gorsel img{width:100%;height:100%;object-fit:cover;}
.idh-hs-gorsel-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}

/* İÇERİK — overflow hidden kritik */
.idh-hs-icerik{
    flex:1;
    min-width:0;        /* flex child overflow fix */
    overflow:hidden;
}
.idh-hs-ust{display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:nowrap;overflow:hidden;}
.idh-hs-badge{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:2px 7px;border-radius:20px;white-space:nowrap;flex-shrink:0;}
.idh-hs-sure{font-size:10px;color:#ccc;margin-left:auto;white-space:nowrap;flex-shrink:0;padding-left:6px;}

/* BAŞLIK — en kritik: overflow ile taşmayı engelle */
.idh-hs-baslik{
    font-size:14px;
    font-weight:500;
    color:#1a1a1a;
    line-height:1.45;
    margin-bottom:3px;
    white-space:normal;
    word-break:break-word;
    word-wrap:break-word;
    overflow-wrap:break-word;
    transition:color .12s;
    /* tam göster — clamp yok */
}
.idh-hs-ozet{
    font-size:12px;color:#888;line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
    white-space:normal;word-break:break-word;
    margin-bottom:4px;
}
.idh-hs-alt{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow:hidden;}
.idh-hs-kaynak{font-size:10px;color:#bbb;display:flex;align-items:center;gap:3px;min-width:0;overflow:hidden;white-space:nowrap;}
.idh-hs-kaynak-nokta{width:4px;height:4px;border-radius:50%;background:#ccc;flex-shrink:0;}
.idh-hs-okunma{font-size:10px;color:#ccc;display:flex;align-items:center;gap:2px;flex-shrink:0;}
.idh-hs-okunma svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2;}
.idh-hs-devam{font-size:11px;font-weight:700;color:#e63946;margin-left:auto;white-space:nowrap;flex-shrink:0;}

/* ══ AY AYRAÇ ══ */
.idh-ay-ayrac{display:flex;align-items:center;gap:10px;padding:18px 0 6px 72px;}
.idh-ay-ayrac-txt{font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#bbb;white-space:nowrap;}
.idh-ay-ayrac-cizgi{flex:1;height:1px;background:rgba(0,0,0,.06);}

/* ══ SAYFALAMA ══ */
.idh-sayfalama{display:flex;align-items:center;gap:8px;padding:20px 0 40px 72px;flex-wrap:wrap;}
.idh-sayfalama .page-numbers{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;border-radius:8px;font-size:12px;font-weight:500;background:#fff;border:1px solid rgba(0,0,0,.1);color:#555;text-decoration:none;transition:all .12s;}
.idh-sayfalama .page-numbers:hover{background:#e63946;color:#fff;border-color:#e63946;}
.idh-sayfalama .page-numbers.current{background:#1a1a1a;color:#fff;border-color:#1a1a1a;}

/* ══ MOBİL BAR ══ */
.idh-mobil-bar{display:none;}
.idh-mobil-logo{display:flex;align-items:center;gap:8px;text-decoration:none;}
.idh-mobil-logo-icon{width:28px;height:28px;background:#e63946;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.idh-mobil-logo-icon svg{width:13px;height:13px;fill:#fff;}
.idh-mobil-logo-txt{font-size:13px;font-weight:600;color:#1a1a1a;}
.idh-hamburger{width:36px;height:36px;background:#f5f4f1;border:none;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.idh-hamburger svg{width:18px;height:18px;stroke:#555;fill:none;stroke-width:2;}
.idh-sb-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:99;}

/* ══ ARAMA ══ */
.idh-arama-form{display:flex;gap:10px;margin-bottom:20px;}
.idh-arama-input{flex:1;padding:10px 14px;border:1.5px solid #e0dbd1;border-radius:10px;font-size:14px;font-family:inherit;outline:none;background:#fff;}
.idh-arama-input:focus{border-color:#e63946;}
.idh-arama-btn{padding:10px 20px;background:#e63946;color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;}
.idh-arama-btn:hover{background:#c42b38;}
.idh-arama-sonuc-bilgi{font-size:13px;color:#888;margin-bottom:16px;}


/* ══ BANNER REKLAM ══ */
.idh-banner-wrap {
    margin: 12px 0;
    text-align: center;
    background: #f0ece4;
    border-radius: 8px;
    overflow: hidden;
    padding: 8px 0;
}
.idh-banner-img {
    width: 100%;
    max-width: 728px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: inline-block;
    border-radius: 4px;
}
@media(max-width:767px){
    .idh-banner-img { max-width: 100%; max-height: 60px; }
}
@media(max-width:380px){
    .idh-banner-img { max-height: 50px; }
}
/* ══ 404 ══ */
.idh-404{padding:80px 24px;text-align:center;}
.idh-404 h1{font-size:48px;font-weight:300;color:#ddd;}
.idh-404 p{color:#888;margin-top:12px;}

/* ══ ADMİN BAR ══ */
.admin-bar #idh-sidebar{top:32px;height:calc(100vh - 32px);}
.admin-bar .idh-mobil-bar{top:46px;}
@media(max-width:782px){
    .admin-bar #idh-main{padding-top:96px;}
    .admin-bar .idh-mobil-bar{top:46px;}
    .admin-bar #idh-sidebar{top:96px;height:calc(100vh - 96px);}
}

/* ══════════════════════════════════════════
   TABLET 768–1023px
══════════════════════════════════════════ */
@media(max-width:1023px) and (min-width:768px){
    .idh-app{grid-template-columns:200px 1fr;}
    #idh-sidebar{width:200px;}
    .idh-logo{padding:16px 14px 12px;}
    .idh-logo-text{font-size:13px;}
    .idh-sb-nav-item{font-size:12px;padding:8px 10px;}
    .idh-sb-kat{font-size:11.5px;padding:6px 10px;}
    .idh-ana-wrap{max-width:100%;}
    .idh-ana-baslik-wrap{padding:20px 20px 0;}
    .idh-tabs{padding:0 20px;}
    .idh-ana-icerik{padding:4px 20px 60px;}
    .idh-ana-icerik .idh-sayfalama{padding-left:68px;}
    .idh-ana-icerik .idh-ay-ayrac{padding-left:68px;}
    .idh-ay-ayrac{padding-left:68px;}
    .idh-sayfalama{padding-left:68px;}
    .idh-hs-gorsel{width:80px;min-width:80px;height:62px;}
    .idh-hs-baslik{font-size:13.5px;}
}

/* ══════════════════════════════════════════
   MOBİL ≤767px
══════════════════════════════════════════ */
@media(max-width:767px){
    /* Tek sütun */
    .idh-app{grid-template-columns:1fr;}

    /* Sidebar drawer */
    #idh-sidebar{position:fixed;left:-260px;top:50px;width:260px;height:calc(100vh - 50px);transition:left .25s ease;z-index:150;overflow-y:auto;}
    #idh-sidebar.acik{left:0;}
    .idh-sb-overlay.acik{display:block;}

    .idh-tabs-ok{background:linear-gradient(to right, transparent, #f5f4f1 40%);}
    /* Mobil bar: logo sol, hamburger sağ */
    .idh-mobil-bar{
        display:flex;position:fixed;
        top:0;left:0;right:0;z-index:200;
        height:50px;background:#fff;
        border-bottom:1px solid rgba(0,0,0,.08);
        align-items:center;justify-content:space-between;
        padding:0 14px;
    }
    #idh-main{padding-top:50px;}

    /* Ana sayfa wrapper */
    .idh-ana-wrap{max-width:100%;}
    .idh-ana-baslik-wrap{padding:14px 14px 0;}
    .idh-page-title{font-size:18px;}
    .idh-tabs{padding:0 14px;}
    .idh-ana-icerik{padding:2px 12px 60px;}
    .idh-ana-icerik .idh-sayfalama{padding-left:0;padding-top:12px;}
    .idh-ana-icerik .idh-ay-ayrac{padding-left:56px;}

    /* Ticker */
    #idh-ticker{padding:0 12px;}
    .idh-ticker-inner{gap:10px;}
    .idh-tick-label{font-size:9px;letter-spacing:0;}
    .idh-tick-val{font-size:11px;}

    /* HABER SATIRI MOBİL */
    .idh-haber-satir{padding:12px 0;}

    /* Tarih küçük ama okunabilir */
    .idh-hs-tarih{width:38px;min-width:38px;padding-right:4px;}
    .idh-hs-gun{font-size:16px;}
    .idh-hs-ay{font-size:8px;letter-spacing:.4px;}
    .idh-hs-saat{font-size:8px;}

    /* Nokta çizgi */
    .idh-hs-timeline{width:16px;min-width:16px;}
    .idh-hs-dot{width:8px;height:8px;}

    /* Görsel küçük ama kalsın */
    .idh-hs-gorsel{width:72px;min-width:72px;height:58px;margin:0 10px 0 6px;border-radius:7px;}

    /* İçerik — başlık görünsün */
    .idh-hs-icerik{overflow:hidden;}
    .idh-hs-ust{gap:4px;margin-bottom:3px;}
    .idh-hs-badge{font-size:8px;padding:2px 5px;}
    .idh-hs-sure{font-size:8px;}
    .idh-hs-baslik{
        font-size:13px;
        font-weight:500;
        line-height:1.38;
        -webkit-line-clamp:2;
        white-space:normal;
        word-break:break-word;
        overflow:hidden;
    }
    .idh-hs-ozet{display:none;}
    .idh-hs-devam{display:none;}
    .idh-hs-alt{gap:6px;}
    .idh-hs-okunma{font-size:9px;}
    .idh-hs-kaynak{font-size:9px;}
}

/* ══════════════════════════════════════════
   KÜÇÜK MOBİL ≤380px
══════════════════════════════════════════ */
@media(max-width:380px){
    .idh-ana-baslik-wrap{padding:12px 12px 0;}
    .idh-ana-icerik{padding:2px 10px 50px;}
    .idh-ana-icerik .idh-ay-ayrac{padding-left:50px;}
    .idh-hs-tarih{width:34px;min-width:34px;padding-right:3px;}
    .idh-hs-gun{font-size:14px;}
    .idh-hs-timeline{width:14px;min-width:14px;}
    .idh-hs-gorsel{width:64px;min-width:64px;height:52px;margin:0 8px 0 4px;}
    .idh-hs-baslik{font-size:12.5px;}
    .idh-tick-item:nth-child(n+4){display:none;}
    .idh-tick-sep:nth-child(n+4){display:none;}
    .idh-tab{padding:8px 10px;font-size:12px;}
}
