/*
Theme Name: Eşsiz Haber
Theme URI: https://example.com/essiz-haber
Author: Haber Sitesi
Author URI: https://example.com
Description: Hızlı, modern, tamamen özelleştirilebilir bir WordPress haber teması. Slider'lı ana sayfa ve kategori sayfaları, Ekonomi sayfasında otomatik döviz/altın kurları, Spor sayfasında çoklu lig puan durumu, kategori başına ayarlanabilir haber sayısı, köşe yazarları vitrini ve reklam alanları içerir.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: essiz-haber
Tags: news, blog, grid-layout, right-sidebar, featured-images, custom-widgets
*/

:root{
  --eh-accent:#d21f1f;
  --eh-accent-dark:#a91717;
  --eh-dark:#111318;
  --eh-gray-900:#1c1f26;
  --eh-gray-700:#3a3f4b;
  --eh-gray-500:#6b7280;
  --eh-gray-200:#e5e7eb;
  --eh-gray-100:#f3f4f6;
  --eh-white:#fff;
  --eh-up:#0a8f3c;
  --eh-radius:10px;
  --eh-shadow:0 2px 10px rgba(0,0,0,.08);
  --eh-maxw:1200px;
  --eh-sky-w:160px;
}
*{box-sizing:border-box;}
body{margin:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:var(--eh-gray-900);background:#fafafa;line-height:1.5;}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
a:hover{color:var(--eh-accent);}
h1,h2,h3,h4,h5{margin:0 0 .5em;line-height:1.25;}
ul{margin:0;}
.eh-container{max-width:var(--eh-maxw);margin:0 auto;padding:0 20px;}
.eh-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}

/* ---------- Sayfa dış çerçeve + skyscraper reklamlar ---------- */
.eh-page-wrap{position:relative;max-width:1600px;margin:0 auto;}
.eh-sky{position:sticky;top:90px;width:var(--eh-sky-w);flex-shrink:0;display:none;}
.eh-sky-flex{display:flex;justify-content:center;gap:0;}
@media(min-width:1460px){ .eh-sky{display:block;} }
.eh-sky .widget{padding:0;box-shadow:none;background:transparent;}

/* ---------- Topbar ---------- */
.eh-topbar{background:var(--eh-dark);color:#cfd3da;font-size:13px;}
.eh-topbar .eh-container{display:flex;justify-content:space-between;align-items:center;height:36px;}
.eh-topbar a{color:#cfd3da;margin-left:14px;}

/* ---------- Header ---------- */
.eh-header{background:var(--eh-white);border-bottom:3px solid var(--eh-accent);}
.eh-header .eh-container{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;}
.eh-logo{font-size:30px;font-weight:800;letter-spacing:-1px;color:var(--eh-dark);}
.eh-logo span{color:var(--eh-accent);}
.eh-header-ad{display:flex;justify-content:center;margin:0 auto;}

/* ---------- Reklam Alanları (genel) ---------- */
.eh-ad-slot{margin:0 0 24px;text-align:center;}
.eh-ad-slot .widget{box-shadow:none;background:transparent;padding:0;margin:0;}
.eh-ad-label{font-size:10px;letter-spacing:1px;color:var(--eh-gray-500);text-align:center;margin-bottom:4px;text-transform:uppercase;}

/* ---------- Navigasyon ---------- */
.eh-nav{background:var(--eh-gray-900);position:relative;}
.eh-nav-inner{display:flex;align-items:center;max-width:var(--eh-maxw);margin:0 auto;padding:0 20px;}
.eh-nav ul{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0;}
.eh-nav li{position:relative;}
.eh-nav a{display:block;color:#fff;padding:13px 16px;font-weight:600;font-size:14.5px;text-transform:uppercase;letter-spacing:.3px;}
.eh-nav a:hover,.eh-nav .current-menu-item>a,.eh-nav .current-category-ancestor>a{background:var(--eh-accent);color:#fff;}
.eh-nav-toggle{display:none;background:none;border:0;color:#fff;font-size:24px;padding:10px 16px;cursor:pointer;margin-left:auto;}

/* ---------- Layout ---------- */
.eh-layout{display:grid;grid-template-columns:1fr 340px;gap:30px;max-width:var(--eh-maxw);margin:28px auto;padding:0 20px;align-items:start;}
.eh-main{min-width:0;}
.eh-sidebar{min-width:0;}

/* ==================== SLIDER (manşet) ==================== */
.eh-slider{position:relative;width:100%;max-width:950px;aspect-ratio:950/530;border-radius:var(--eh-radius);overflow:hidden;box-shadow:var(--eh-shadow);margin-bottom:14px;background:var(--eh-gray-200);}
.eh-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease;}
.eh-slide.eh-active{opacity:1;visibility:visible;}
.eh-slide img{width:100%;height:100%;object-fit:cover;}
.eh-slide .eh-slide-overlay{position:absolute;left:0;right:0;bottom:0;padding:26px 24px 46px;background:linear-gradient(0deg,rgba(0,0,0,.88) 15%,rgba(0,0,0,0) 100%);}
.eh-slide .eh-cat-tag{display:inline-block;background:var(--eh-accent);color:#fff;font-size:12px;font-weight:700;text-transform:uppercase;padding:4px 10px;border-radius:4px;margin-bottom:10px;}
.eh-slide h2{color:#fff;font-size:26px;margin:0;}
.eh-slide p{color:#e6e6e6;margin:8px 0 0;font-size:14px;}
.eh-slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;border:0;font-size:18px;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;}
.eh-slider-arrow.eh-prev{left:14px;}
.eh-slider-arrow.eh-next{right:14px;}
.eh-slider-arrow:hover{background:var(--eh-accent);}
.eh-slider-dots{position:absolute;left:20px;right:20px;bottom:12px;display:flex;gap:6px;z-index:5;flex-wrap:wrap;}
.eh-slider-dots button{width:26px;height:24px;border-radius:4px;border:0;background:rgba(255,255,255,.25);color:#fff;font-size:12px;font-weight:700;cursor:pointer;}
.eh-slider-dots button.eh-active{background:var(--eh-accent);}

/* Kategori sayfası küçük slider'ı (aynı yapı, biraz daha kısa) */
.eh-slider.eh-slider-sm{aspect-ratio:950/420;max-width:100%;}

/* ---------- Kurlar Şeridi (Ana sayfa, slider altı) ---------- */
.eh-rates-strip{display:flex;flex-wrap:wrap;gap:0;background:#fff;border-radius:var(--eh-radius);box-shadow:var(--eh-shadow);overflow:hidden;margin-bottom:30px;max-width:950px;}
.eh-rates-strip .eh-rs-item{flex:1;min-width:120px;padding:12px 14px;border-right:1px solid var(--eh-gray-100);text-align:center;}
.eh-rates-strip .eh-rs-item:last-child{border-right:0;}
.eh-rates-strip .eh-rs-name{display:block;font-size:12px;color:var(--eh-gray-500);margin-bottom:4px;}
.eh-rates-strip .eh-rs-val{font-weight:800;font-size:15px;}
.eh-rates-strip .eh-rs-up{color:var(--eh-up);}
.eh-rates-strip .eh-rs-down{color:var(--eh-accent);}

/* ---------- Sitewide alt kayan kur şeridi (footer üstü) ---------- */
.eh-ticker-bar{background:var(--eh-dark);color:#fff;overflow:hidden;white-space:nowrap;font-size:13px;padding:8px 0;}
.eh-ticker-track{display:inline-block;padding-left:100%;animation:eh-ticker-scroll 40s linear infinite;}
.eh-ticker-track span{margin-right:34px;font-weight:600;}
.eh-ticker-track .eh-rs-up{color:#4fd37c;}
.eh-ticker-track .eh-rs-down{color:#ff7676;}
@keyframes eh-ticker-scroll{ 0%{transform:translateX(0);} 100%{transform:translateX(-100%);} }

/* ---------- Kategori Bloklari (Ana Sayfa) ---------- */
.eh-cat-block{margin-bottom:36px;}
.eh-cat-block-head{display:flex;align-items:center;justify-content:space-between;background:var(--eh-accent);margin-bottom:16px;padding:9px 16px;border-radius:6px;}
.eh-cat-block-head h3{font-size:16px;text-transform:uppercase;letter-spacing:.4px;color:#fff;margin:0;}
.eh-cat-block-head a{font-size:12.5px;font-weight:700;color:#fff;opacity:.9;}
.eh-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.eh-card{background:#fff;border-radius:var(--eh-radius);overflow:hidden;box-shadow:var(--eh-shadow);transition:transform .15s ease;}
.eh-card:hover{transform:translateY(-3px);}
.eh-card .eh-thumb{width:100%;aspect-ratio:16/10;overflow:hidden;background:var(--eh-gray-200);}
.eh-card .eh-thumb img{width:100%;height:100%;object-fit:cover;}
.eh-card .eh-card-body{padding:14px 16px;}
.eh-card h4{font-size:15.5px;margin:0 0 6px;}
.eh-card .eh-meta{font-size:12px;color:var(--eh-gray-500);}

/* ---------- Yazarlar Carousel (Vitrin) ---------- */
.eh-yazarlar-blok{margin-bottom:36px;}
.eh-yazarlar-carousel{position:relative;}
.eh-yazarlar-track{display:flex;gap:16px;overflow:hidden;scroll-behavior:smooth;}
.eh-yazar-card{flex:0 0 calc(25% - 12px);background:#fff;border-radius:var(--eh-radius);box-shadow:var(--eh-shadow);padding:18px 14px;text-align:center;}
.eh-yazar-card img{width:64px;height:64px;border-radius:50%;object-fit:cover;margin:0 auto 10px;}
.eh-yazar-card h5{font-size:14px;margin:0 0 4px;}
.eh-yazar-card p{font-size:12px;color:var(--eh-gray-500);margin:0;}
.eh-yazarlar-nav{display:flex;justify-content:center;gap:10px;margin-top:14px;}
.eh-yazarlar-nav button{width:32px;height:32px;border-radius:50%;border:1px solid var(--eh-gray-200);background:#fff;cursor:pointer;font-size:14px;}
.eh-yazarlar-nav button:hover{background:var(--eh-accent);color:#fff;border-color:var(--eh-accent);}
.eh-yazarlar-dots{display:flex;justify-content:center;gap:6px;margin-top:10px;}
.eh-yazarlar-dots span{width:7px;height:7px;border-radius:50%;background:var(--eh-gray-200);display:inline-block;}
.eh-yazarlar-dots span.eh-active{background:var(--eh-accent);}
@media(max-width:900px){ .eh-yazar-card{flex:0 0 calc(50% - 8px);} }

/* ---------- Sidebar Widgetlari (genel) ---------- */
.widget{background:#fff;border-radius:var(--eh-radius);box-shadow:var(--eh-shadow);padding:18px;margin-bottom:22px;}
.widget-title{font-size:15px;text-transform:uppercase;font-weight:800;letter-spacing:.4px;border-left:5px solid var(--eh-accent);padding-left:10px;margin:0 0 14px;}

/* Döviz/Altın widget (tablo görünümü, Ekonomi kutusu) */
.eh-finans-table{width:100%;border-collapse:collapse;font-size:13px;}
.eh-finans-table th{text-align:left;font-size:11px;color:var(--eh-gray-500);text-transform:uppercase;padding:6px 4px;border-bottom:1px solid var(--eh-gray-200);}
.eh-finans-table td{padding:8px 4px;border-bottom:1px solid var(--eh-gray-100);}
.eh-finans-table td.eh-fr-name{font-weight:700;}
.eh-finans-table .eh-rs-up{color:var(--eh-up);}
.eh-finans-table .eh-rs-down{color:var(--eh-accent);}
.eh-rates-updated{font-size:11px;color:var(--eh-gray-500);margin-top:10px;text-align:right;}

/* Basit döviz listesi (kompakt widget) */
.eh-rates-list{list-style:none;margin:0;padding:0;}
.eh-rates-list li{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px dashed var(--eh-gray-200);font-size:14px;}
.eh-rates-list li:last-child{border-bottom:0;}
.eh-rates-list .eh-rate-name{font-weight:700;}

/* Puan durumu - lig sekmeleri */
.eh-lig-tabs{display:flex;flex-wrap:wrap;gap:2px;background:var(--eh-gray-100);border-radius:6px;padding:3px;margin-bottom:12px;}
.eh-lig-tabs button{flex:1;min-width:38px;border:0;background:transparent;padding:7px 4px;font-size:12px;font-weight:700;color:var(--eh-gray-700);border-radius:4px;cursor:pointer;}
.eh-lig-tabs button.eh-active{background:var(--eh-accent);color:#fff;}
.eh-lig-panel{display:none;}
.eh-lig-panel.eh-active{display:block;}
.eh-standings{width:100%;border-collapse:collapse;font-size:12.5px;}
.eh-standings th,.eh-standings td{padding:6px 3px;text-align:center;border-bottom:1px solid var(--eh-gray-100);}
.eh-standings th{font-size:10.5px;color:var(--eh-gray-500);text-transform:uppercase;}
.eh-standings td.eh-team{text-align:left;font-weight:600;}
.eh-standings tr:nth-child(-n+4) td.eh-rank{color:var(--eh-up);font-weight:800;}
.eh-standings tr:nth-last-child(-n+3) td.eh-rank{color:var(--eh-accent);font-weight:800;}
.eh-lig-empty{font-size:12.5px;color:var(--eh-gray-500);padding:10px 0;}

/* Köşe yazarları - sidebar liste */
.eh-columnist-list{list-style:none;margin:0;padding:0;}
.eh-columnist-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed var(--eh-gray-200);}
.eh-columnist-list li:last-child{border-bottom:0;}
.eh-columnist-list img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.eh-columnist-list .eh-c-name{font-weight:700;font-size:13.5px;display:block;}
.eh-columnist-list .eh-c-sum{font-size:12px;color:var(--eh-gray-500);}

/* Takım logoları şeridi (Spor sayfası) */
.eh-takim-seridi{display:flex;gap:14px;overflow-x:auto;padding:14px 0 20px;}
.eh-takim-seridi img{width:42px;height:42px;object-fit:contain;flex-shrink:0;}

/* ---------- İlginizi Çekebilir (single altı) ---------- */
.eh-ilgili{margin-top:38px;}
.eh-ilgili-baslik{background:var(--eh-dark);color:#fff;padding:9px 16px;border-radius:6px;font-size:15px;text-transform:uppercase;font-weight:800;margin-bottom:16px;}
.eh-ilgili-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}

/* ---------- Tekil Yazı ---------- */
.eh-single-content{font-size:16px;}
.eh-single-content p{margin:0 0 1.1em;}
.eh-single-content img{border-radius:8px;margin:14px 0;}

/* ---------- Footer ---------- */
.eh-footer{background:var(--eh-dark);color:#c9cdd6;margin-top:0;padding:36px 0;font-size:13.5px;}
.eh-footer .eh-container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;}
.eh-footer a{color:#c9cdd6;}

/* ---------- Sayfalama ---------- */
.nav-links{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap;}
.nav-links a,.nav-links span{display:inline-block;padding:8px 13px;background:#fff;border-radius:6px;box-shadow:var(--eh-shadow);font-size:13px;font-weight:700;}
.nav-links .current{background:var(--eh-accent);color:#fff;}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .eh-layout{grid-template-columns:1fr;}
  .eh-cat-grid,.eh-ilgili-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .eh-nav ul{display:none;flex-direction:column;width:100%;}
  .eh-nav.eh-open ul{display:flex;}
  .eh-nav-toggle{display:block;}
  .eh-nav-inner{flex-wrap:wrap;padding:0;}
  .eh-nav-inner .eh-nav-toggle{margin-left:0;order:1;}
  .eh-cat-grid,.eh-ilgili-grid{grid-template-columns:1fr;}
  .eh-slide h2{font-size:19px;}
  .eh-yazar-card{flex:0 0 100%;}
  .eh-rates-strip .eh-rs-item{min-width:33%;}
}
