/*
Theme Name: VengHaber
Description: VengHaber için özel haber teması — BBC Türkçe / Euronews Türkçe tarzı editoryal tasarım, tamamen reklamsız, dünya gündemi/spor/Kürt halkı odaklı.
Author: VengHaber
Version: 1.0
License: GPL-2.0-or-later
Text Domain: venghaber
*/

/* ==== Temel ==== */
:root {
  --ink: #14151a;
  --ink-light: #24262f;
  --accent: #c8102e;
  --gold: #b8892b;
  --gold-soft: #f6ecd9;
  --text: #14151a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f4f4f6;
  --border: #e4e4e8;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==== Üst bar ==== */
.site-header { background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-transform: uppercase;
}
.logo::after { content: "."; color: var(--accent); }

.search-form { display: flex; }
.search-form input {
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 6px 0 0 6px;
  font-size: 16px; /* 16px altı iOS Safari'de odaklanınca otomatik zoom yapar */
  width: 200px;
  min-height: 44px;
}
.search-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==== Yatay kategori çubuğu (sadece masaüstü) ==== */
.cat-bar { background: var(--ink-light); display: none; }
.cat-bar-inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-bar a {
  color: #d6d7dd;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.cat-bar a:hover { color: #fff; }
.cat-bar a.is-active { color: #fff; border-bottom-color: var(--accent); }
.cat-bar a.is-flagship { color: var(--gold); }
.cat-bar a.is-flagship.is-active { border-bottom-color: var(--gold); color: #fff; }

@media (min-width: 901px) {
  .cat-bar { display: block; }
}

/* ==== Hamburger menü tetikleyici ==== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: -10px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* ==== Açılır kategori menüsü (off-canvas) ==== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 26, 0.55);
  z-index: 90;
}

.site-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}
.site-menu.is-open { transform: translateX(0); }

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
}
.site-menu-title { font-weight: 800; font-size: 1.1rem; }
.menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.site-menu-list { list-style: none; }
.site-menu-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.site-menu-row a {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}
.site-menu-row a:hover, .site-menu-row a.is-active { color: var(--accent); }
.site-menu-row a.is-flagship { color: var(--gold); }
.site-menu-expand {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.site-menu-item.is-expanded > .site-menu-row .site-menu-expand { transform: rotate(180deg); }

.site-menu-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
  transition: max-height 0.25s ease;
}
.site-menu-item.is-expanded .site-menu-sub { max-height: 600px; }
.site-menu-sub a {
  display: block;
  padding: 0.75rem 1.2rem 0.75rem 1.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.site-menu-sub a:hover { color: var(--ink); }

/* ==== Ana yerleşim (içerik + kenar çubuğu) ==== */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.content { min-width: 0; }

/* ==== Kenar çubuğu: son dakika ==== */
.sidebar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: sticky;
  top: 1rem;
}
.sidebar-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--accent);
}
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.sidebar-list li { padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-list time { font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.sidebar-list a span { font-size: 0.92rem; line-height: 1.35; }
.sidebar-list a:hover span { color: var(--ink-light); }

/* ==== Manşet: BBC/Euronews tarzı — 1 büyük + yan sütunda 4 küçük başlık ==== */
.hero { margin: 1.5rem 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
}
.hero-lead {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.hero-lead img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.hero-lead-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.5rem 1.3rem;
  background: linear-gradient(0deg, rgba(20,21,26,0.92) 0%, rgba(20,21,26,0.55) 60%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-lead-text h1 { font-size: 1.6rem; line-height: 1.25; }
.hero-lead-text p { color: #d6d7dd; font-size: 0.95rem; }
.hero-lead:hover h1 { text-decoration: underline; }

.hero-secondary { display: flex; flex-direction: column; gap: 0; }
.hero-secondary-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.hero-secondary-item:first-child { padding-top: 0; }
.hero-secondary-item img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.hero-secondary-item .hs-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.hero-secondary-item h3 { font-size: 0.95rem; line-height: 1.3; }
.hero-secondary-item:hover h3 { color: var(--accent); }

/* Euronews tarzı kicker — küçük kategori etiketi */
.kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.kicker.is-flagship { color: var(--gold); }

/* ==== Bölümler & grid ==== */
.section { margin: 2.2rem 0; }
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.section-title.is-flagship { border-left-color: var(--gold); }
.section-title a:hover { color: var(--ink-light); }
.page-title { font-size: 1.5rem; text-transform: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(20, 21, 26, 0.12);
  transform: translateY(-2px);
}
.card img, .card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1.05rem;
}
.card-body { padding: 0.9rem; }
.card-body h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0.45rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body time { font-size: 0.8rem; color: var(--text-muted); }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}
.badge.is-flagship { background: var(--gold); }

/* ==== Kürt Halkı bölümü — altın vurgulu öne çıkan blok ==== */
.section.is-flagship {
  background: var(--gold-soft);
  border: 1px solid #e9d6ac;
  border-radius: var(--radius);
  padding: 1.6rem;
}

/* ==== Haber detay ==== */
.article-detail { max-width: 760px; margin: 2rem auto; }
.article-head h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0.8rem 0 0.4rem;
}
.article-head time { color: var(--text-muted); font-size: 0.9rem; }
.article-image { margin: 1.5rem 0; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2, .article-body h3 { margin: 1.4rem 0 0.7rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }

.article-tags { margin: 1.8rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==== Yorumlar ==== */
.comments-section { margin: 2.5rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--accent);
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.comment-item .comment-body {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.comment-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-meta time { font-size: 0.8rem; color: var(--text-muted); }
.comment-content p { margin-bottom: 0.5rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comments-closed { color: var(--text-muted); }

.comment-respond {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.comment-reply-title { font-size: 1.1rem; margin-bottom: 0.8rem; }
.comment-notes { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.comment-form-author, .comment-form-comment { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.comment-form .required { color: var(--accent); }
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
.comment-form textarea { resize: vertical; }
.comment-form .form-submit { margin-top: 0.3rem; }
.comment-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: #a10d26; }

/* ==== Sayfalama & boş durum ==== */
.pagination, .navigation.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.pagination .nav-links { display: flex; gap: 0.6rem; align-items: center; }
.pagination a, .pagination .current {
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination .current { background: var(--ink); color: #fff; }

.empty { color: var(--text-muted); padding: 2rem 0; }

/* ==== Alt bilgi ==== */
.site-footer {
  background: var(--ink);
  color: #b3b4bd;
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.88rem;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: #b3b4bd; }
.footer-links a:hover { color: #fff; }

/* ==== Duyarlı ==== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead img { min-height: 220px; }
  .hero-lead-text { padding: 1.2rem; }
  .hero-lead-text h1 { font-size: 1.35rem; }
}

@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-left { flex: 1; }
  .search-form { width: 100%; order: 3; }
  .search-form input { width: 100%; flex: 1; }
  .logo { font-size: 1.45rem; }
  .article-head h1 { font-size: 1.5rem; }
  .article-body { font-size: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-secondary-item img { width: 76px; height: 56px; }
  .hero-lead-text h1 { font-size: 1.2rem; }
  .hero-lead img { min-height: 190px; }
  .section.is-flagship { padding: 1rem; }
  .section-title { font-size: 1.1rem; }
  .container { padding: 0 0.85rem; }
  .card-body h3 { font-size: 1rem; }
  .pagination a, .pagination .current { padding: 0.55rem 1rem; }
  .tag { padding: 0.45rem 1rem; }
  .comment-form input[type="text"],
  .comment-form textarea { font-size: 16px; }
  .comment-form input[type="submit"] { width: 100%; min-height: 48px; }
}
