/* ============================================================
   Barkodlar.org — Özel Stiller (Newspaper tema renk paleti)
   ============================================================ */

:root {
  --accent:       #4db2ec;
  --accent-dark:  #2e9bd6;
  --text:         #111111;
  --text-light:   #555555;
  --heading:      #222222;
  --border:       #ededed;
  --bg-light:     #f7f7f7;
  --font-sans:    'Open Sans', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --max-width:    1068px;
}

/* ---- Temel ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  margin: 0;
}

.container { max-width: var(--max-width); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
}

img { max-width: 100%; height: auto; }

/* ---- Üst başlık (logo alanı) ---- */
.site-header-top {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  padding: 12px 0;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo img { height: 35px; width: auto; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--heading);
}

.site-tagline {
  font-size: 13px;
  color: var(--text-light);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.header-ad-728 {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .header-ad-728 { display: none; }
}

/* ---- Navbar ---- */
.site-navbar {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  padding: 0;
}

.site-navbar .navbar-nav .nav-link {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 10px;
  transition: color 0.2s, background 0.2s;
}

.site-navbar .navbar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.site-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.site-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Arama kutusu (navbar) */
.site-search-form .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
  font-size: 13px;
  height: 34px;
  width: 180px;
}
.site-search-form .btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
}
.site-search-form .btn-search:hover { background: var(--accent-dark); }

/* Dropdown menü */
.site-navbar .dropdown-menu {
  background: #1a252f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 4px 4px;
  padding: 4px 0;
  min-width: 180px;
  margin-top: 0;
}
.site-navbar .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  letter-spacing: 0.4px;
}
.site-navbar .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.site-navbar .nav-link.dropdown-toggle::after {
  vertical-align: middle;
  opacity: 0.6;
}

/* ---- Ana içerik sarmalayıcı ---- */
#page-wrap { min-height: 60vh; }

.site-main { padding-top: 28px; padding-bottom: 40px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
  margin-bottom: 20px;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-light); }

/* ---- Araç banner'ları (ana sayfa) ---- */
.tool-banners {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 28px;
}
.tool-banner-link {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}
.tool-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
  .tool-banners { flex-direction: column; }
}

/* ---- Post kartı (liste) ---- */
.post-card {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.post-thumb-link { flex: 0 0 220px; }
.post-thumb {
  width: 220px;
  height: 148px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.post-card-body { flex: 1 1 auto; }

.post-card-title {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.35;
}
.post-card-title a { color: var(--heading); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }

.post-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 10px;
}

.btn-read-more {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.btn-read-more:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ---- Tek yazı ---- */
.entry-title {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-featured-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
}

.entry-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}
.entry-content p  { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 22px; margin-top: 2em; }
.entry-content h3 { font-size: 18px; margin-top: 1.6em; }
.entry-content img { border-radius: 4px; margin: 12px 0; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1em; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 20px;
  background: var(--bg-light);
  color: var(--text-light);
  margin: 1.5em 0;
  border-radius: 0 4px 4px 0;
}

/* ---- Yorumlar ---- */
.comments-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.comments-title {
  font-size: 20px;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }

.comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-body { flex: 1 1 auto; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-author { font-size: 14px; color: var(--heading); }
.comment-date   { font-size: 12px; color: var(--text-light); }

.comment-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.comment-form-wrap {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 24px;
}
.comment-form-title {
  font-size: 17px;
  margin-bottom: 18px;
}

/* Paylaşım butonları */
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.btn-share {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px;
  color: #fff;
  border: none;
}
.btn-twitter  { background: #1da1f2; }
.btn-facebook { background: #1877f2; }
.btn-whatsapp { background: #25d366; }
.btn-share:hover { opacity: 0.85; color: #fff; text-decoration: none; }

/* ---- Arşiv başlığı ---- */
.archive-title {
  font-size: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 24px;
}

/* ---- Kenar çubuğu ---- */
.sidebar { padding-left: 28px; }

.widget {
  background: var(--bg-light);
  border-radius: 6px;
  margin-bottom: 28px;
  overflow: hidden;
}

.widget-title {
  background: var(--heading);
  padding: 10px 16px;
}
.widget-title span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-list, .recent-posts { padding: 12px 16px; margin: 0; }
.category-list li, .recent-posts li {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.category-list li:last-child, .recent-posts li:last-child { border-bottom: none; }

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--heading);
  font-size: 14px;
}
.category-list a:hover { color: var(--accent); text-decoration: none; }
.category-list .count {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
}

.recent-posts a {
  display: block;
  font-size: 13px;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.recent-posts a:hover { color: var(--accent); text-decoration: none; }
.recent-date { font-size: 11px; color: var(--text-light); }

/* ---- Footer ---- */
.site-footer {
  background: #1a252f;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-main { padding-bottom: 30px; }
.site-footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.site-footer p { font-size: 13px; line-height: 1.7; }
.footer-nav ul li { margin-bottom: 7px; }
.footer-nav a, .footer-categories a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-categories a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ---- Sayfalama ---- */
.pagination .page-link {
  color: var(--accent);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-link:hover { background: var(--bg-light); }

/* ---- 404 ---- */
.error-404 .display-1 { font-size: 120px; font-weight: 700; }

/* ---- İletişim formu ---- */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,178,236,0.2);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .sidebar { padding-left: 0; margin-top: 32px; }

  .site-search-form { margin-top: 12px; }
  .site-search-form .form-control { width: 100%; }
}

@media (max-width: 767px) {
  .post-card { flex-direction: column; }
  .post-thumb-link { flex: unset; }
  .post-thumb { width: 100%; height: 200px; }

  .entry-title { font-size: 22px; }

  .site-header-top .site-tagline { display: none; }
}
