/*
Theme Name: Kaçkar Haber Ajansı
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Kaçkar Haber Ajansı için hazırlanmış, Türkçe, hızlı ve bot uyumlu WordPress haber teması.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kackar-haber-ajansi
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, two-columns
*/

:root {
  --bg: #eef4f1;
  --surface: #ffffff;
  --surface-2: #f5faf8;
  --text: #1a2622;
  --muted: #5d706a;
  --primary: #0d6b4d;
  --primary-dark: #084c37;
  --accent: #1f4c89;
  --border: #d7e4dd;
  --shadow: 0 10px 30px rgba(14, 53, 40, 0.08);
  --radius: 18px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #edf5f2 0%, #f8fbfa 260px, #edf4f1 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 28px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 10px; z-index: 1000; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  background: linear-gradient(135deg, #0b5f45 0%, #0a7757 45%, #1d5c96 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.topbar {
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
}
.topbar-inner, .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.topbar a, .site-header a { color: #fff; }
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.site-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
}
.site-title a { color: #fff; }
.site-description {
  margin: 4px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.site-logo img { max-height: 64px; width: auto; }
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: rgba(255,255,255,.15); }

.hero {
  padding: 28px 0 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-feature {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
}
.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,22,17,0.05) 0%, rgba(4,18,14,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
}
.badge {
  display: inline-flex;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  line-height: 1.12;
}
.hero-summary { margin: 0; color: rgba(255,255,255,.88); }
.side-stack {
  display: grid;
  gap: 20px;
}
.compact-list { padding: 18px; }
.compact-list h2,
.section-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.compact-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.compact-item:first-of-type { border-top: 0; padding-top: 0; }
.compact-item img { width: 88px; height: 68px; object-fit: cover; border-radius: 12px; }
.compact-item h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.meta, .entry-meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }

.page-wrap {
  padding: 8px 0 42px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.news-card {
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.news-body { padding: 18px; }
.news-title, .entry-title {
  margin: 0 0 12px;
  line-height: 1.25;
}
.news-title { font-size: 1.25rem; }
.news-excerpt { color: #41524d; }
.read-more {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 700;
}
.sidebar .widget,
.archive-header,
.single-wrap,
.comments-area,
.pagination-wrap,
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.sidebar .widget { margin-bottom: 20px; }
.widget-title { margin: 0 0 14px; font-size: 1.05rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-top: 1px solid var(--border); }
.widget li:first-child { border-top: 0; padding-top: 0; }
.search-form { display: flex; gap: 8px; }
.search-field,
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfefd;
}
.button,
.search-submit,
.comment-form .submit,
.wp-block-search__button {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.archive-header { margin-bottom: 22px; }
.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; }
.single-content { font-size: 1.05rem; }
.single-content p { margin-top: 0; }
.single-content h2,
.single-content h3,
.single-content h4 { line-height: 1.25; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.post-tags a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 14px;
}
.nav-links { display: flex; justify-content: space-between; gap: 16px; }
.site-footer {
  margin-top: 36px;
  background: #0f1916;
  color: rgba(255,255,255,.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 22px;
  padding: 36px 0;
}
.footer-title { margin: 0 0 14px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0 24px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }

@media (max-width: 1040px) {
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .header-main { flex-wrap: wrap; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; }
  .hero-feature { min-height: 320px; }
  .posts-grid { grid-template-columns: 1fr; }
  .compact-item { grid-template-columns: 76px 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
}


.single-layout {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
}
.single-category,
.news-category { margin-bottom: 10px; }
.single-thumb { margin: 18px 0; }
.single-content iframe,
.single-content video,
.single-content table { max-width: 100%; }
.single-content a { overflow-wrap: anywhere; }
.single-content > *:first-child { margin-top: 0; }
.single-nav-wrap { margin-top: 22px; }

/* Gereksiz paylaşım düğmeleri ve sosyal blokları gizle */
.sharedaddy,
.sd-sharing,
.sd-social,
.swp_social_panel,
.swp_social_panelSide,
.heateor_sss_sharing_container,
.heateor_sss_follow_us_container,
.addtoany_shortcode,
.addtoany_share_save_container,
.a2a_kit,
.a2a_overlay,
[class*="share-buttons"],
[class*="social-share"],
[class*="whatsapp"],
[class*="facebook"],
[id*="share"],
[id*="whatsapp"],
[id*="facebook"] {
  display: none !important;
}

/* Haber akışında bozuk satır taşmalarını önle */
.news-excerpt,
.single-content,
.entry-title,
.news-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 760px) {
  .site-header { position: static; }
  .header-main { align-items: flex-start; }
  .branding { width: 100%; }
  .site-description { font-size: 13px; }
  .menu-toggle { margin-left: auto; }
}


.hero-grid-clean {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
}
.compact-list-clean {
  align-self: stretch;
}
.content-grid-clean,
.single-layout-full {
  display: block;
}
.single-layout-full > div,
.content-grid-clean > div {
  max-width: 100%;
}
.single-thumb {
  margin: 18px 0 20px;
  overflow: hidden;
  border-radius: 14px;
}
.single-thumb img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.single-content > *:first-child {
  margin-top: 0;
}
.single-content p {
  margin: 0 0 18px;
}
.footer-simple {
  padding: 28px 0 8px;
  text-align: center;
}
.footer-simple p {
  margin: 6px 0;
}
.site-footer .footer-grid,
.site-footer .footer-menu,
.sidebar,
.comments-area,
.post-tags {
  display: none !important;
}
@media (max-width: 900px) {
  .hero-grid-clean,
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
