/*
Theme Name: Okuma Temasi
Theme URI: https://github.com/
Author: Metin Abi
Description: Goze yormayan blog okuma temasi. Sol icerik + sag sidebar. Nunito Sans font.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: okuma-temasi
*/

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* VARIABLES */
:root {
  --bg:          #F9F7F4;
  --white:       #FFFFFF;
  --ink:         #1C1B1A;
  --ink-soft:    #3B3936;
  --ink-muted:   #7C7975;
  --border:      #E6E3DE;
  --accent:      #FF5533;
  --accent-hover:#E04020;
  --sidebar-w:   300px;
  --gap:         32px;
  --max:         1160px;
  --font:        'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:      6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* GLOBAL: menu ve sidebar listelerinde isaret yok */
ul, ol, li { list-style: none; }
nav ul, nav ol, nav li,
.site-nav ul, .site-nav ol, .site-nav li,
.site-nav > ul, .site-nav > ul > li { list-style: none !important; }

/* Post content icindeki listeler haric - orada isaret olsun */
.single-content ul  { list-style: disc !important; }
.single-content ol  { list-style: decimal !important; }
.single-content ul li { list-style: disc !important; }
.single-content ol li { list-style: decimal !important; }
.single-content li  { list-style: inherit !important; margin-bottom: 0.4rem; }

/* SIDEBAR ARAMA */
.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.15s;
}

.search-wrap:focus-within { border-color: var(--accent); }

.search-wrap input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
}

.search-wrap input[type="search"]::placeholder { color: var(--ink-muted); }

.search-wrap button {
  background: var(--accent);
  border: none;
  padding: 0 1rem;
  height: 100%;
  min-height: 36px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-wrap button:hover { background: var(--accent-hover); }


#reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Admin bar varken sticky header offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* TOP HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Site adi + alt baslik yan yana: logo sol */
.header-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-logo span { color: var(--accent); }

/* Logo resim stili */
.site-logo-img {
  display: block;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.site-logo-img:hover {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 8px rgba(255,255,255,0.6));
  transform: translateY(-1px);
}

.site-tagline-old-removed { display: none; }

/* NAVIGASYON - yatay, yan yana */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0; /* linkler arasina border koymak icin */
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  background: #F0EDE8;
  color: var(--accent);
}

/* WRAPPER */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.site-main { flex: 1; padding: 0; }
.site-main > .layout { padding-top: 1.5rem; }
.single .site-main > .layout,
.page .site-main > .layout,
.archive .site-main > .layout,
.search-results .site-main > .layout { padding-top: 1.5rem; }

/* Arama sayfasinda ust bosluk olmasin */
.search .site-main { padding-top: 0; }
.search .layout { padding-top: 2.5rem; }

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
  position: relative;
}

/* CONTENT AREA (sol) */
.content-area { min-width: 0; }

/* SIDEBAR (sag) */
.sidebar {
  will-change: min-height;
  align-self: start;
}

.sidebar-inner {
  transform: translate3d(0, 0, 0);
  will-change: position, transform;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* Son Yazilar widget */
.recent-post-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }
.recent-post-item:hover { opacity: 0.75; }

/* Thumbnail - ilk resim content'ten cekiliyor, asla placeholder uretme */
.recent-post-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Resim yoksa sade bir kutu - hic resim uretme */
.recent-post-no-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--ink-muted);
}

.recent-post-info { flex: 1; min-width: 0; }

.recent-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.recent-post-date {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

/* Kategoriler widget */
.cat-list { list-style: none; }

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.cat-list li:last-child { border-bottom: none; }

.cat-list a { color: var(--ink-soft); transition: color 0.15s; }
.cat-list a:hover { color: var(--accent); }
.cat-list .count { color: var(--ink-muted); font-size: 0.72rem; }

/* BLOG LIST (index.php) */
.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 3px 16px rgba(0,0,0,0.07); }
.post-card:last-child { margin-bottom: 0; }

/* Yatay duzen: sol resim + sag metin */
.post-card-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Sol thumbnail - 390x220 sabit */
.post-card-thumb {
  flex-shrink: 0;
  width: 390px;
  height: 220px;
  overflow: hidden;
  background: var(--bg);
  display: block;
  border-radius: var(--radius) 0 0 var(--radius);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.post-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}

.post-card:hover .post-card-title { color: var(--accent); }

.post-meta {
  font-size: 0.7rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.dot {
  width: 3px; height: 3px;
  background: var(--ink-muted);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.post-excerpt {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-top: auto;
}

.read-more::after { content: '->'; }
.read-more:hover { color: var(--accent-hover); }

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { font-size: 0.82rem; color: var(--ink-muted); }

/* WordPress page-links (sayfa ici sayfalama) */
.page-links {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 2px;
  transition: border-color 0.15s, color 0.15s;
}

.page-links a:hover { border-color: var(--accent); color: var(--accent); }

/* SINGLE POST */
.single-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.single-header { padding: 2rem 2.5rem 0; }

.single-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* Kart resimlerdeki gibi badge */
.single-category-badge {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  transition: background 0.15s;
}

.single-category-badge:hover { background: #1557b0; color: #fff; }

.single-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.single-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 4px 4px 0;
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* One cikan gorsel */
.single-featured-image {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-featured-image figcaption {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 0.5rem 2.5rem;
  font-style: italic;
}

/* Icerik */
.single-content {
  padding: 2rem 2.5rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.single-content p { margin-bottom: 1.5rem; }

.single-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.01em;
}

.single-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
}

.single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  font-style: italic;
}

.single-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover { color: var(--accent-hover); }

.single-content ul, .single-content ol {
  margin: 1rem 0 1.5rem !important;
  padding-left: 1.75rem !important;
}

.single-content li { margin-bottom: 0.5rem; }

.single-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.single-content code {
  font-size: 0.85em;
  background: #F0EDE8;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.single-content pre {
  background: var(--ink);
  color: #f0ebe3;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 1.5rem 0 2rem;
}

.single-content pre code { background: none; padding: 0; color: inherit; }

/* Resimler icinde - sadece gercek yuklenen resimler, asla placeholder */
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

/* single-footer yukarida paylasim butonlari bolumunde tanimlandi */
.single-footer {
  padding: 1.25rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.post-tags a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  transition: border-color 0.15s, color 0.15s;
}

.post-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* YAZAR KUTUSU */
.author-box {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  align-items: flex-start;
}

.author-box-avatar { flex-shrink: 0; }

.author-avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--border);
}

.author-box-content { flex: 1; min-width: 0; }

.author-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.author-box-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.author-box-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s;
}

.author-box-name:hover { color: var(--accent); }

.author-box-all {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.author-box-all:hover { border-color: var(--accent); color: var(--accent); }

.author-box-bio {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

/* Dark mode */
body.dark-mode .author-box { background: var(--white); border-color: var(--border); border-left-color: var(--accent); }
body.dark-mode .author-box-all { background: #252836; }

/* Mobil */
@media (max-width: 640px) {
  .author-box { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .author-avatar { width: 64px !important; height: 64px !important; }
}

/* RELATED POSTS */
.related-posts { margin-top: 1.5rem; }

.related-posts-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

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

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: box-shadow 0.15s;
}

.related-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.06); }

.related-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}

.related-card:hover .related-card-title { color: var(--accent); }
.related-card-date { font-size: 0.7rem; color: var(--ink-muted); }

/* FOOTER */
.site-footer {
  background: #3f4257;
  border-top: none;
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer sayfa linkleri */
.footer-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-pages a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.footer-pages a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* RESPONSIVE */

/* Tablet: 900px alti - sidebar alta gecer */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sidebar-widget { margin-bottom: 0; }
}

/* Mobil: 640px alti */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .header-inner {
    height: auto;
    padding: 0.7rem 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .site-tagline { font-size: 0.7rem; }

  /* Hamburger SADECE mobilden gorunur - display:flex ile garanti */
  .nav-toggle { display: flex !important; }

  /* Nav mobilede varsayilan gizli - hamburger acar */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    white-space: normal;
  }

  .site-nav a:last-child { border-bottom: none; }

  .site-header { position: sticky; top: 0; z-index: 100; }

  /* Mobil kart: resim ustte tam genislik, icerik altinda */
  .post-card { overflow: hidden; }
  .post-card-inner { flex-direction: column; align-items: stretch; }
  .post-card-thumb {
    width: 100% !important;
    height: 180px !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    display: block;
  }
  .post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .post-card-body { padding: 0.75rem 0.9rem; }
  .post-card-title { font-size: 0.95rem; }
  .post-excerpt { display: none; }

  /* Layout */
  .layout { padding: 0 0.75rem; }
  .sidebar { grid-template-columns: 1fr; }

  /* Makale */
  .single-title { font-size: 1.4rem; }
  .single-header,
  .single-content,
  .single-footer { padding-left: 1rem; padding-right: 1rem; }

  /* Tablo */
  .single-content table { font-size: 0.8rem; }
  .single-content table td,
  .single-content table thead tr th { padding: 0.5rem 0.65rem; }

  /* Related */
  .related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-pages { flex-wrap: wrap; }

  /* Yukari cik */
  #back-to-top { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
}

/* Kucuk mobil: 400px alti */
@media (max-width: 400px) {
  .post-card-thumb { width: 90px; }
  .post-card-title { font-size: 0.85rem; }
  .single-title { font-size: 1.25rem; }
}

/* SITE TAGLINE - varsayilan biraz daha buyuk */
.site-tagline {
  font-size: 0.85rem; /* tema panelinden override edilebilir */
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tagline-accent { color: var(--accent); font-weight: 600; }

/* ARSIV / KATEGORI BASLIGI */
.archive-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.archive-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.archive-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.archive-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ILGILI YAZILAR - resimli */
.related-card-thumb {
  width: 100%;
  height: 130px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--bg);
  margin: -1rem -1rem 0.75rem;
  width: calc(100% + 2rem);
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-card:hover .related-card-thumb img { transform: scale(1.04); }

/* DAHA FAZLA YUKLE BUTONU */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1.75rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes okuma-spin {
  to { transform: rotate(360deg); }
}

#load-more-spinner svg {
  animation: okuma-spin 0.8s linear infinite;
}
/* TABLO - mobil tasma korumasi */
.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: table;
  table-layout: fixed;
  word-break: break-word;
}

/* Baslik */
.single-content table thead tr th {
  background: var(--ink) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ink);
  word-break: break-word;
}

.single-content table tbody tr:nth-child(even) td { background: #F5F2EE; }
.single-content table tbody tr:nth-child(odd) td  { background: var(--white); }
.single-content table tbody tr:hover td           { background: #EDE9E3; transition: background 0.15s; }

.single-content table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink-soft);
  word-break: break-word;
}

.single-content table td:last-child  { border-right: none; }
.single-content table tr:last-child td { border-bottom: none; }

/* Gutenberg ve TablePress wrapper */
.single-content figure.wp-block-table {
  margin: 2rem 0;
  overflow: hidden;
}

.single-content figure.wp-block-table table,
.single-content .tablepress-wrap table { margin: 0; }

/* Mobilde tablo font kucult - ekrana sigsin */
@media (max-width: 640px) {
  .single-content table {
    font-size: 0.72rem !important;
    table-layout: fixed;
    width: 100% !important;
  }
  .single-content table thead tr th {
    font-size: 0.68rem !important;
    padding: 0.45rem 0.4rem !important;
    letter-spacing: 0;
  }
  .single-content table td {
    font-size: 0.72rem !important;
    padding: 0.45rem 0.4rem !important;
    line-height: 1.4;
  }
}

/* MOBIL HAMBURGER MENUSU - sadece mobilde gorunur */
.nav-toggle {
  display: none; /* masaustunde gizli - media query'de flex olarak acilir */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* YUKARI CIK BUTONU */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.15s;
  z-index: 99999; /* herseyin ustunde */
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover { background: var(--accent-hover); }

/* PAYLASIM BUTONLARI */
.single-footer {
  padding: 1.25rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  transition: opacity 0.15s, transform 0.15s;
  color: #fff;
  white-space: nowrap;
}

.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .share-label { display: none; }
  .share-btn {
    padding: 0.28rem 0.45rem;
    font-size: 0.68rem;
    gap: 0.2rem;
  }
}

.share-x  { background: #000; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-pinterest { background: #e60023; }

/* YORUMLAR */
.comments-area {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

/* WordPress #respond kutusunun kendi stilini sifirla */
.comments-area #respond {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.comments-area .comments-title,
.comments-area #reply-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.comments-area .comment-list { margin: 0 0 1.5rem; padding: 0; }

.comments-area .comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.comments-area .comment-item:last-child { border-bottom: none; }

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.comment-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-meta { display: flex; flex-direction: column; gap: 2px; }

.comment-meta .comment-author.fn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.comment-meta .comment-date {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.comment-content p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.comment-reply { margin-top: 0.4rem; }

.comment-reply a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.children {
  padding-left: 2rem;
  border-left: 2px solid var(--border);
  margin-top: 0.5rem;
  list-style: none;
}

/* Yorum formu */
.comments-area .comment-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.comments-area .comment-form textarea { min-height: 120px; resize: vertical; }

.comments-area .comment-form p { margin-bottom: 0.85rem; }

.comments-area .comment-form .form-submit { margin-top: 0.5rem; }

.comments-area .comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.5rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.comments-area .comment-form .submit:hover { background: var(--accent-hover); }

.comments-area .logged-in-as,
.comments-area .comment-notes {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

/* TOGGLE / ACCORDION */
.okuma-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--white);
}

.okuma-toggle summary.okuma-toggle-title {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: #FAFAF9;
  transition: background 0.15s;
  user-select: none;
}

.okuma-toggle summary.okuma-toggle-title::-webkit-details-marker { display: none; }

.okuma-toggle summary.okuma-toggle-title::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.okuma-toggle[open] summary.okuma-toggle-title::after { content: '-'; }

.okuma-toggle[open] summary.okuma-toggle-title {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.okuma-toggle summary.okuma-toggle-title:hover { background: #F0EDE8; }

.okuma-toggle-content {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left !important;
}

.okuma-toggle-content * { text-align: left !important; }

.okuma-toggle-content p { margin-bottom: 0.5rem; }
.okuma-toggle-content p:last-child { margin-bottom: 0; }

/* REKLAM ALANLARI */
.ad-area {
  margin: 1.25rem 0;
  text-align: center;
  overflow: hidden;
}

.ad-area img { margin: 0 auto; }

.ad-area-label {
  font-size: 0.62rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

/* FOCUS */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 404 SAYFASI */
.error-404-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.error-404 {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

/* 404 Sayı animasyonu */
.error-404-visual { position: relative; margin-bottom: 2rem; }

.error-404-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
}

.e4-4 {
  font-size: 9rem;
  font-weight: 700;
  color: var(--accent);
  animation: e4-bounce 2s ease-in-out infinite;
  display: inline-block;
  letter-spacing: -0.05em;
}

.e4-4:last-child { animation-delay: 0.3s; }

.e4-0 {
  width: 8rem;
  height: 8rem;
  color: var(--ink);
  display: inline-flex;
  animation: e4-spin 6s linear infinite;
}

.e4-0 svg { width: 100%; height: 100%; }

@keyframes e4-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes e4-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Yıldızlar */
.error-404-stars { position: absolute; inset: 0; pointer-events: none; }

.star {
  position: absolute;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0;
  animation: star-twinkle 3s ease-in-out infinite;
}

.s1 { top: 10%; left: 15%; animation-delay: 0s; }
.s2 { top: 20%; right: 10%; animation-delay: 0.5s; }
.s3 { bottom: 20%; left: 8%; animation-delay: 1s; }
.s4 { bottom: 10%; right: 20%; animation-delay: 1.5s; }
.s5 { top: 50%; right: 5%; animation-delay: 0.8s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 1; transform: scale(1.2); }
}

/* Metin */
.error-404-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.error-404-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Butonlar */
.error-404-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-404-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}

.btn-404-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-404-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}

.btn-404-secondary:hover {
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

/* Arama */
.error-404-search {
  max-width: 420px;
  margin: 0 auto 2.5rem;
}

.error-404-search-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Son yazılar */
.error-404-recent { margin-top: 1rem; }

.error-404-recent-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.error-404-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.error-404-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.error-404-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.07); }

.error-404-card-thumb {
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: var(--bg);
}

.error-404-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.error-404-card:hover .error-404-card-thumb img { transform: scale(1.05); }

.error-404-card-body { padding: 0.65rem 0.75rem; }

.error-404-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.error-404-card:hover .error-404-card-title { color: var(--accent); }

@media (max-width: 640px) {
  .e4-4 { font-size: 6rem; }
  .e4-0 { width: 5.5rem; height: 5.5rem; }
  .error-404-recent-grid { grid-template-columns: 1fr; }
  .error-404-title { font-size: 1.2rem; }
}

/* BOX SHORTCODE */
.okuma-box {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: 0.9rem;
  line-height: 1.65;
  position: relative;
}

.okuma-box__content p:last-child { margin-bottom: 0; }

.okuma-box--info {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #0d47a1;
}

.okuma-box--warning {
  background: #fff3e0;
  border-color: #ff9800;
  color: #e65100;
}

.okuma-box--success {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #1b5e20;
}

.okuma-box--note {
  background: #fff8e1;
  border-color: #ffc107;
  color: #3e2723;
}

.okuma-box--tip {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #0d47a1;
}

.okuma-box--love {
  background: #fce4ec;
  border-color: #e91e63;
  color: #880e4f;
}

.okuma-box--expert {
  background: #e8eaf6;
  border-color: #3f51b5;
  color: #1a237e;
}

.okuma-box--action {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #1b5e20;
}

.okuma-box--didyouknow {
  background: #e0f7fa;
  border-color: #00bcd4;
  color: #006064;
}

/* TOOLTIP SHORTCODE */
.okuma-tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dashed var(--accent);
  color: var(--accent);
  cursor: help;
  z-index: 10000;
}

.okuma-tooltip__bubble {
  display: none;
  position: fixed;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 0.6rem 0.9rem;
  border-radius: 5px;
  width: max-content;
  max-width: 320px;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
}

/* Ok */
.okuma-tooltip__bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

/* gravity=s - asagida goster */
.okuma-tooltip[data-gravity="s"] .okuma-tooltip__bubble {
  bottom: auto;
  top: calc(100% + 8px);
}

.okuma-tooltip[data-gravity="s"] .okuma-tooltip__bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ink);
}

.okuma-tooltip:hover .okuma-tooltip__bubble { /* JS handles this */ }

@media (max-width: 640px) {
  .okuma-tooltip__bubble {
    max-width: 260px;
    font-size: 0.78rem;
  }
}

/* HIGHLIGHT SHORTCODE */
.okuma-highlight {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-style: normal;
}

.okuma-highlight--yellow  { background: #fff176; color: #3e2723; }
.okuma-highlight--green   { background: #c8e6c9; color: #1b5e20; }
.okuma-highlight--red     { background: #ffcdd2; color: #b71c1c; }
.okuma-highlight--blue    { background: #bbdefb; color: #0d47a1; }
.okuma-highlight--orange  { background: #ffe0b2; color: #e65100; }
.okuma-highlight--pink    { background: #f8bbd0; color: #880e4f; }
.okuma-highlight--purple  { background: #e1bee7; color: #4a148c; }

/* SEARCH NO RESULTS */
.search-nores {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.search-nores-icon { color: var(--border); margin-bottom: 1rem; }
.search-nores-icon svg { display: inline-block; }

.search-nores-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.search-nores-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.search-nores-form {
  max-width: 420px;
  margin: 0 auto 1.25rem;
}

.search-nores-tips {
  list-style: disc !important;
  display: inline-block;
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.search-nores-tips li {
  list-style: disc !important;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.search-nores-recent-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

/* MOBILE ACTIONS - hamburger + arama yan yana */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mobile-actions .nav-toggle,
.mobile-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
  font-size: 0;
}

.mobile-actions .nav-toggle:hover,
.mobile-search-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobil arama bar */
.mobile-search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  z-index: 201;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

.mobile-search-bar.open { display: block; }
.mobile-search-bar .search-wrap { background: var(--bg); }

@media (max-width: 640px) {
  .mobile-actions { display: flex; }
  /* Masaustu hamburger'i gizle - artik mobile-actions icinde */
  .nav-toggle { display: none !important; }
  /* Ama mobile-actions icindeki gorünsün */
  .mobile-actions .nav-toggle { display: flex !important; }
}

/* FOOTER TEXT */
.footer-text {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-text a { color: var(--accent); }
.footer-text a:hover { text-decoration: underline; }

/* SIDEBAR LOAD MORE */
.sidebar-load-more {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}

.sidebar-load-more:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* KATEGORI BADGE - resmin sag alt kosesi */
.post-card-thumb { position: relative; }

.card-cat-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}

/* SIDEBAR ARAMA - kutu kaldirildi, sade form */
.sidebar-search { margin-bottom: 1.25rem; }

/* ── DARK MODE TOGGLE BUTONU ── */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.dark-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Masaustunde goster, mobilde mobile-actions icinde */
.dark-toggle:not(.mobile-dark-toggle) { display: flex; }

/* Ay/Gunes ikonlari */
.dark-toggle .icon-moon { display: none; }
.dark-toggle .icon-sun  { display: block; }

body.dark-mode .dark-toggle .icon-moon { display: block; }
body.dark-mode .dark-toggle .icon-sun  { display: none; }

@media (max-width: 640px) {
  .dark-toggle:not(.mobile-dark-toggle) { display: none; }
  .mobile-dark-toggle { display: flex !important; }
}

/* ── DARK MODE RENKLERI ── */
body.dark-mode {
  --bg:          #0f1117;
  --white:       #1a1d27;
  --ink:         #e8e6e3;
  --ink-soft:    #c8c5c0;
  --ink-muted:   #8a8680;
  --border:      #2e3140;
  --accent:      #ff6644;
  --accent-hover:#ff4422;
}

body.dark-mode { background: var(--bg); color: var(--ink); }

/* Header */
body.dark-mode .site-header { background: var(--white); border-color: var(--border); }

/* Kartlar */
body.dark-mode .post-card,
body.dark-mode .single-article,
body.dark-mode .sidebar-widget,
body.dark-mode .comments-area,
body.dark-mode .archive-header,
body.dark-mode .search-nores,
body.dark-mode .okuma-box--info,
body.dark-mode .related-card,
body.dark-mode .error-404-card { background: var(--white); border-color: var(--border); }

/* Inputlar */
body.dark-mode .search-wrap,
body.dark-mode .comments-area input,
body.dark-mode .comments-area textarea,
body.dark-mode .mobile-search-bar { background: #252836; border-color: var(--border); color: var(--ink); }

body.dark-mode .search-wrap input[type="search"],
body.dark-mode .comments-area input,
body.dark-mode .comments-area textarea { background: #252836; color: var(--ink); }

body.dark-mode .search-wrap input::placeholder,
body.dark-mode .comments-area input::placeholder,
body.dark-mode .comments-area textarea::placeholder { color: var(--ink-muted); }

/* Tablolar */
body.dark-mode .single-content table { border-color: var(--border); }
body.dark-mode .single-content table thead tr th { background: #2e3140 !important; color: var(--ink) !important; }
body.dark-mode .single-content table tbody tr:nth-child(even) td { background: #1e2130; }
body.dark-mode .single-content table tbody tr:nth-child(odd) td  { background: var(--white); }
body.dark-mode .single-content table td { border-color: var(--border); color: var(--ink-soft); }

/* Toggle accordion */
body.dark-mode .okuma-toggle { background: var(--white); border-color: var(--border); }
body.dark-mode .okuma-toggle summary.okuma-toggle-title { background: #252836; color: var(--ink); }
body.dark-mode .okuma-toggle[open] summary.okuma-toggle-title { background: var(--white); }
body.dark-mode .okuma-toggle summary.okuma-toggle-title:hover { background: #2e3140; }

/* Box shortcode */
body.dark-mode .okuma-box--info    { background: #1a2a3a; border-color: #2196f3; color: #90caf9; }
body.dark-mode .okuma-box--warning { background: #2a1f0a; border-color: #ff9800; color: #ffcc80; }
body.dark-mode .okuma-box--success { background: #0a2a10; border-color: #4caf50; color: #a5d6a7; }
body.dark-mode .okuma-box--note    { background: #2a2000; border-color: #ffc107; color: #fff59d; }
body.dark-mode .okuma-box--tip     { background: #1a2a3a; border-color: #2196f3; color: #90caf9; }
body.dark-mode .okuma-box--love    { background: #2a0a1a; border-color: #e91e63; color: #f48fb1; }
body.dark-mode .okuma-box--expert  { background: #1a1a2a; border-color: #3f51b5; color: #9fa8da; }
body.dark-mode .okuma-box--action  { background: #0a2a10; border-color: #4caf50; color: #a5d6a7; }
body.dark-mode .okuma-box--didyouknow { background: #002a2a; border-color: #00bcd4; color: #80deea; }

/* Blockquote */
body.dark-mode .single-content blockquote { background: #252836; border-color: var(--accent); }

/* Yazar kutusu */
body.dark-mode .author-box { background: var(--white); border-color: var(--border); }

/* Footer */
body.dark-mode .site-footer { background: #0a0c14; }

/* Sidebar */
body.dark-mode .sidebar-search .search-wrap { background: #252836; }

/* Nav mobil */
body.dark-mode .site-nav { background: var(--white); border-color: var(--border); }
body.dark-mode .site-nav a { color: var(--ink-soft); }
body.dark-mode .site-nav a:hover { background: #2e3140; color: var(--accent); }

/* Pagination, load more */
body.dark-mode .load-more-btn,
body.dark-mode .sidebar-load-more,
body.dark-mode .pagination a { background: var(--white); border-color: var(--border); color: var(--ink-soft); }

/* Reading progress */
body.dark-mode #reading-progress { background: var(--accent); }

/* Tooltip */
body.dark-mode .okuma-tooltip__bubble { background: #e8e6e3; color: #1a1d27; }
body.dark-mode .okuma-tooltip__bubble::after { border-top-color: #e8e6e3; }

/* Highlight */
body.dark-mode .okuma-highlight--yellow  { background: #3a3000; color: #fff59d; }
body.dark-mode .okuma-highlight--green   { background: #0a2a10; color: #a5d6a7; }
body.dark-mode .okuma-highlight--red     { background: #2a0a0a; color: #ef9a9a; }
body.dark-mode .okuma-highlight--blue    { background: #0a1a2a; color: #90caf9; }
body.dark-mode .okuma-highlight--orange  { background: #2a1500; color: #ffcc80; }

/* Image overlay effect - dark mode'da resimler biraz kararsın */
body.dark-mode img:not(.comment-avatar) { filter: brightness(0.9); }

/* ── BREAKING NEWS BAR ── */
.breaking-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  position: relative;
  z-index: 99;
}

.breaking-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breaking-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-date-text {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.breaking-date-sep {
  font-size: 0.78rem;
  color: var(--border);
}

.breaking-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.breaking-news-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}

.breaking-label {
  background: #FFAB76;
  color: #7a3a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-ticker-outer {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.breaking-typewriter {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.15s;
}

.breaking-typewriter:hover { color: var(--accent); }

.breaking-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.breaking-socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.breaking-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-muted);
  transition: color 0.15s, background 0.15s;
}

.breaking-social-btn:hover {
  color: var(--social-color, var(--accent));
  background: rgba(0,0,0,0.06);
}

/* Dark mode */
body.dark-mode .breaking-bar { background: var(--white); border-color: var(--border); }
body.dark-mode .breaking-time { background: #252836; border-color: var(--border); color: var(--ink); }
body.dark-mode .breaking-label { background: #7a4a20; color: #ffd4a8; }

/* Mobil */
@media (max-width: 640px) {
  .breaking-bar { display: none; }
}

/* ── SIDEBAR SEKMELER ── */
.sidebar-tabs-widget { padding: 0 !important; overflow: hidden; }

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.sidebar-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
}

.sidebar-tab:hover { color: var(--accent); }

.sidebar-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: none;
}

.sidebar-tab-content {
  display: none;
  padding: 0.75rem 1.25rem 1.25rem;
}

.sidebar-tab-content.active { display: block; }

/* Dark mode sekmeler */
body.dark-mode .sidebar-tabs { border-color: var(--border); }
body.dark-mode .sidebar-tab { color: var(--ink-muted); }
body.dark-mode .sidebar-tab.active { color: var(--accent); }

/* ANA SAYFA IKONU */
.site-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  color: var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.site-nav-home:hover { background: #F0EDE8; color: var(--accent-hover); }

/* DROPDOWN MENU */
.site-nav li {
  position: relative;
  list-style: none !important;
}

/* Ok ikonu - alt menusu olan itemlar */
.site-nav li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform 0.2s;
}

.site-nav li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Alt menu */
.site-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 999;
  padding: 0.35rem 0;
  list-style: none !important;
}

.site-nav li.menu-item-has-children:hover > ul.sub-menu { display: block; }

.site-nav ul.sub-menu li { list-style: none !important; }

.site-nav ul.sub-menu li a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  border-radius: 0;
}

.site-nav ul.sub-menu li a:hover { background: #F0EDE8; color: var(--accent); }

/* Mobil dropdown - menü acikken alt liste de goster */
@media (max-width: 640px) {
  .site-nav ul.sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin-left: 1rem;
    display: none;
  }
  .site-nav li.menu-item-has-children.open > ul.sub-menu { display: block; }
  .site-nav li.menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
}

/* Dark mode dropdown */
body.dark-mode .site-nav ul.sub-menu { background: var(--white); border-color: var(--border); }
body.dark-mode .site-nav ul.sub-menu li a { color: var(--ink-soft); }
body.dark-mode .site-nav ul.sub-menu li a:hover { background: #2e3140; }

/* FOOTER MOBIL SOSYAL IKONLAR */
.footer-mobile-socials {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transition: color 0.15s, background 0.15s;
}

.footer-social-btn:hover {
  color: var(--sc, #fff);
  background: rgba(255,255,255,0.15);
}

@media (max-width: 640px) {
  .footer-mobile-socials { display: flex; }
}

/* WORDPRESS RESIM HİZALAMA */
.single-content .alignleft,
.single-content img.alignleft {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
  max-width: 50%;
}

.single-content .alignright,
.single-content img.alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
  max-width: 50%;
}

.single-content .aligncenter,
.single-content img.aligncenter {
  display: block;
  margin: 1rem auto;
  float: none;
}

.single-content .alignnone { float: none; }

/* Figure wrapper'lar */
.single-content figure.alignleft  { float: left;  margin: 0.25rem 1.5rem 1rem 0; }
.single-content figure.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.single-content figure.aligncenter { margin: 1rem auto; display: table; }

/* Float sonrası temizle */
.single-content::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .single-content .alignleft,
  .single-content .alignright,
  .single-content img.alignleft,
  .single-content img.alignright,
  .single-content figure.alignleft,
  .single-content figure.alignright {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
    display: block;
  }
}

/* ── SLIDER ──────────────────────────────────────────────────────────────── */
.okuma-slider-section {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .okuma-slider-section { display: none; }
}

.okuma-slider-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 3px;
  position: relative;
  overflow: hidden;
}

.okuma-slider-box::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(#ff5533, #ff9500, #ffdd00, #00c853, #00b0ff, #aa00ff, #ff5533);
  animation: okuma-spin 3s linear infinite;
  z-index: 0;
}

.okuma-slider-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--white);
  border-radius: calc(var(--radius) - 1px);
  z-index: 1;
}

.okuma-slider-box > * {
  position: relative;
  z-index: 2;
}

@keyframes okuma-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body.dark-mode .okuma-slider-box::after { background: var(--white); }

.okuma-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.5rem;
}

.okuma-slider {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Kart: resim + overlay başlık */
.okuma-slide {
  flex: 0 0 calc(33.333% - 0.68rem);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/3;
  background: #1a1a2e;
  flex-shrink: 0;
}

#okuma-slider[data-perview="4"] .okuma-slide {
  flex: 0 0 calc(25% - 0.75rem);
}

.okuma-slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.okuma-slide:hover .okuma-slide-img { transform: scale(1.04); }

/* Gradient overlay */
.okuma-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 1;
}

.okuma-slide-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.okuma-slide-cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  width: fit-content;
}

.okuma-slide-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.okuma-slide-date {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
}

/* Ok butonları */
.okuma-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

.okuma-slider-btn:hover { background: var(--accent); color: #fff; }
.okuma-slider-prev { left: 0.5rem; }
.okuma-slider-next { right: 0.5rem; }

/* Dots */
.okuma-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.okuma-slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}

.okuma-slider-dot.active { background: var(--accent); transform: scale(1.3); }

/* Responsive */
@media (max-width: 640px) {
  .okuma-slide { flex: 0 0 100%; }
  .okuma-slider-btn { display: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .okuma-slide { flex: 0 0 calc(50% - 0.5rem); }
}

/* Dark mode */
body.dark-mode .okuma-slider-box { background: var(--white); border-color: var(--border); }

/* SINGLE FOOTER BAR */
.single-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.single-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

/* Pinterest ve Kopyala butonları */

@media (max-width: 640px) {
  .single-footer-bar { flex-direction: column; align-items: flex-start; }
}
