/*
Theme Name: Ajans Besiktas
Version: 1.5
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --bg:#f2f3f5;
  --card:#fff;
  --dark:#0f0f10;
  --text:#212529;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#e30613;
  --gap:18px;
  --container:1180px;
}

* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  font-family:'Roboto', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}
a {
  color:inherit;
  text-decoration:none;
  transition:color .2s;
}
a:hover { color:var(--accent); }
img { max-width:100%; height:auto; display:block; }
.container { width:var(--container); max-width:95%; margin:0 auto; }


/* Header alanı */
.site-header {
  border-bottom: 3px solid #cc0000; /* Kırmızı şerit */
}

.site-header .container.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

/* Logo boyutu */
.site-header .custom-logo {
  max-height: 60px; /* logoyu küçültmek için */
  height: auto;
  width: auto;
}

/* Menü düzeni */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px; /* önce 20–22px idi, daraltıldı */
}

.primary-nav ul li a {
  text-decoration: none;
  padding: 6px 8px; /* padding küçültüldü */
  font-weight: 500;
  font-size: 15px; /* yazı boyutu küçültüldü */
  color: #000;
  transition: color 0.3s ease;
  white-space: nowrap; /* kelimelerin alt satıra geçmesini engeller */
}

.primary-nav ul li a:hover {
  color: #cc0000; /* hover efekti */
}

/* Sosyal ikonlar */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 18px;
  color: #000;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #cc0000;
}


/* HERO GRID */
.hero-grid {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:var(--gap);
  margin:22px 0;
  align-items:start;
}

/* HERO SLIDER */
.hero {
  position:relative;
  background:#000;
  border-radius:12px;
  overflow:hidden;
}
.hero .slides {
  position:relative;
  height:360px;
  overflow:hidden;
}
.hero .slide {
  display:none;
  position:relative;
  height:100%;
}
.hero .slide.active { display:block; }
.hero .slide img {
  width:100%; height:100%; object-fit:cover;
}

/* Başlık */
.hero .cap {
  position:absolute;
  left:0; right:0; bottom:40px; /* numaraların üstünde */
  padding:16px;
  background:linear-gradient(transparent, rgba(0,0,0,.75));
  color:#fff;
}
.hero .cap h2 {
  margin:0;
  font-size:22px;
  line-height:1.25;
  color:#fff;
}

/* Oklar */
.hero .arrows {
  position:absolute;
  top:50%; left:0; right:0;
  display:flex; justify-content:space-between;
  padding:0 10px;
  z-index:8;
}
.hero .arrows button {
  background:rgba(0,0,0,.6);
  color:#fff;
  border:none;
  width:44px; height:44px;
  border-radius:8px;
  cursor:pointer;
}

/* Numaralar */
.hero .dots {
  position:absolute;
  left:0; right:0; bottom:0;
  display:flex;
  justify-content:center;
  gap:8px;
  list-style:none;
  margin:0;
  padding:10px 0;
  background:#000;
}
.hero .dots li {
  width:30px; height:30px;
  border-radius:6px;
  background:#fff;
  border:1px solid var(--line);
  display:grid; place-items:center;
  font-weight:600;
  cursor:pointer;
}
.hero .dots li.active {
  border-color:var(--accent);
  color:var(--accent);
}


/* === ÖNE ÇIKANLAR GENEL === */
.sidebar-widget {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  font-size: 16px;
  margin: 5px 0 8px;
  font-weight: 700;
}

/* === ÖNE ÇIKANLAR HABERLER === */
.side-featured-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 260px; 
}

.side-featured-cards .side-card {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
}

.side-featured-cards .side-card img {
  width: 100%;
  height: 160px;        
  object-fit: cover;    
  display: block;
}

.side-featured-cards .side-card .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 6px 8px;
}

.side-featured-cards .side-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}


/* GRID KARTLAR */
.main-wrap {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:var(--gap);
  margin:24px 0;
}
.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--gap);
}
.card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card .thumb { aspect-ratio:16/9; background:#ddd; }
.card .body { padding:12px 14px; }
.card h2 {
  margin:0 0 8px;
  font-size:18px;
  line-height:1.3;
  font-weight:700;
}
.meta {
  display:flex; gap:10px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}
.meta .tag { color:var(--accent); font-weight:700; }

/* SIDEBAR */
.sidebar {
  display:flex;
  flex-direction:column;
  gap:var(--gap);
}
.widget {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
}

/* FOOTER */
.site-footer {
  margin-top:30px;
  background:var(--dark);
  color:#fff;
}
.footer-widgets {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  padding:24px 0;
}
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.14);
  padding:14px 0;
  text-align:center;
}

/* RESPONSIVE */
@media (max-width:1200px) {
  .grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:980px) {
  .hero-grid { grid-template-columns:1fr; }
  .main-wrap { grid-template-columns:1fr; }
  .grid { grid-template-columns:1fr; }
  .hero .slides { height:220px; }
}



/* Arşiv başlığı */
.archive-header {
  margin: 20px 0;
  padding: 10px 15px;
  background: #f5f5f5;
  border-left: 4px solid #cc0000;
  border-radius: 4px;
}
.archive-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.archive-description {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

/* Sayfalama */
.archive-pagination {
  margin: 25px 0;
  text-align: center;
}
.archive-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
}
.archive-pagination .page-numbers:hover {
  background: #f0f0f0;
}
.archive-pagination .current {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}


/* Breadcrumb */
.ajb-breadcrumb{
  margin:16px 0 6px;
  font-size:14px;
  color:#666;
}
.ajb-breadcrumb a{ color:#666; }
.ajb-breadcrumb a:hover{ color:#cc0000; }


.single-post .spot{font-weight:600;line-height:1.5;display:block;margin:0 0 1rem 0;font-size:1.05rem;}


/* Single üst görsel + başlık */
.ajb-single .single-hero img{ width:100%; height:auto; display:block; border-radius:12px; }
.ajb-single .single-head{ margin:14px 0 8px; }
.single-title{ margin:8px 0 4px; font-size:28px; line-height:1.25; }
.single-meta{ display:flex; align-items:center; gap:8px; color:#666; font-size:14px; }
.single-meta .tag{ color:#cc0000; font-weight:700; }
.single-meta .dot{ opacity:.5; }

/* Sol paylaşım rayı (desktop) */
.share-rail{
  position:sticky; top:100px; left:0;
  display:flex; flex-direction:column; gap:10px;
  width:40px; margin:0 0 0 -60px; z-index:5;
}
.share-rail a{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid #e5e7eb; border-radius:8px; color:#000;
  transition:all .2s ease; background:#fff;
}
.share-rail a:hover{ color:#cc0000; border-color:#cc0000; }

/* Gövde tipografi */
.ajb-single .single-body{ margin-top:10px; }
.ajb-single .single-body p{ font-size:16px; line-height:1.7; margin:14px 0; }
.ajb-single .single-body h2,
.ajb-single .single-body h3{ margin:22px 0 10px; }

/* Etiketler */
.single-tags{
  margin-top:18px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:14px;
}
.single-tags i{ color:#999; }
.single-tags a{
  background:#f5f5f5; padding:6px 10px; border-radius:14px; border:1px solid #eee;
}
.single-tags a:hover{ background:#fff; border-color:#cc0000; color:#cc0000; }

/* Önceki/Sonraki */
.single-nav{
  display:flex; justify-content:space-between; gap:12px; margin:28px 0;
}
.single-nav a{ color:#000; }
.single-nav a:hover{ color:#cc0000; }

/* İlgili haberler */
.related{ margin:30px 0 10px; }
.related .rel-title{
  margin:0 0 12px; font-size:18px; font-weight:700;
  border-left:4px solid #cc0000; padding-left:10px;
}

/* Responsive */
@media (max-width:1200px){
  .share-rail{ display:none; } /* mobilde gizle */
}




/* Paylaş butonu + açılır menü */
.share-inline{ position: relative; margin:8px 0 0; }
.share-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border:1px solid #e5e7eb; border-radius:8px;
  background:#fff; cursor:pointer; font-weight:600;
}
.share-btn:hover{ border-color:#cc0000; color:#cc0000; }

.share-menu{
  position:absolute; left:0; top:calc(100% + 8px);
  background:#fff; border:1px solid #e5e7eb; border-radius:10px;
  padding:6px; min-width:220px; box-shadow:0 8px 22px rgba(0,0,0,.08);
  display:none; z-index:10;
}
.share-menu.open{ display:block; }
.share-inline:hover .share-menu{ display:block; } /* desktop hover */

.share-menu a{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:8px; color:#111;
}
.share-menu a:hover{ background:#f6f6f6; color:#cc0000; }
.share-menu .copy i{ width:18px; text-align:center; }

/* Başlık–gövde aralığını sıkı tutalım */
.ajb-single .single-head{ margin:10px 0 6px; }
.single-title{ margin:6px 0 2px; }
.single-meta{ margin:0; }
.ajb-single .single-body{ margin-top:8px; }
.ajb-single .single-body > *:first-child,
.ajb-single .single-body p:first-of-type{ margin-top:0 !important; }

/* (Eski sol ray artık yoksa görünümden kalksın) */
.share-rail{ display:none !important; }





/* === Sidebar: görsel üstü başlık kartları (6 adet) === */
.sb-widget{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:var(--gap); }
.sb-title{ margin:0 0 10px; font-size:16px; font-weight:700; border-left:4px solid #cc0000; padding-left:8px; }

/* Liste kapsayıcı */
.sb-cards{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }

/* Kart */
.sb-card-link{ display:block; border-radius:10px; overflow:hidden; }
.sb-card-media{ position:relative; height:160px; background:#eee; }
.sb-card-media img{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1); transition:transform .35s ease; }

/* Alt gradient + başlık */
.sb-card-grad{
  position:absolute; left:0; right:0; bottom:0; height:55%;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
}
.sb-card-title{
  position:absolute; left:10px; right:10px; bottom:10px;
  color:#fff; font-size:15px; line-height:1.3; margin:0; font-weight:700;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

/* Hover efekti */
.sb-card-link:hover .sb-card-media img{ transform:scale(1.05); }
.sb-card-link:hover .sb-card-title{ color:#fff; } /* beyaz kalsın, vurgu için istersen kırmızı border eklenebilir */

/* Küçük ekranlarda yükseklik azaltma (isteğe bağlı) */
@media (max-width: 1200px){
  .sb-card-media{ height:140px; }
}


