/* =========================================================================
   Onprotech Güvenlik Sistemleri — Blog Stilleri
   Renk paleti: lacivert (primary) + turuncu/altın (CTA/vurgu)
   ========================================================================= */

:root {
  --navy-900: #0a1128;
  --navy-800: #101a35;
  --navy-700: #1a2744;   /* marka lacivert */
  --navy-600: #24365e;
  --blue-500: #2f6fed;
  --blue-400: #4f8bff;

  --gold-600: #d97706;
  --gold-500: #f59e0b;   /* turuncu/altın CTA */
  --gold-400: #fbbf24;

  --text-dark: #1a2238;
  --text-body: #38415a;
  --text-muted: #6b7590;

  --bg-light: #f4f6fb;
  --white: #ffffff;
  --border: #e4e9f2;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 22px rgba(10, 17, 40, 0.08);
  --shadow-hover: 0 12px 34px rgba(10, 17, 40, 0.16);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 9px;
  font-size: 18px;
}
.logo .accent { color: var(--gold-500); }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: #cdd6ec;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-500); }
.header-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700 !important;
}
.header-cta:hover { filter: brightness(1.07); }

/* ---------- Hero ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--navy-600));
  color: var(--white);
  padding: 58px 20px 62px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.18), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.blog-hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.blog-hero p {
  color: #c6d0e8;
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Kategori Barı ---------- */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.category-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cat-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.cat-chip:hover { border-color: var(--gold-500); color: var(--gold-600); }
.cat-chip.is-active {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}

/* ---------- Ana içerik ---------- */
.blog-main { padding: 44px 20px 60px; }
.blog-container { max-width: var(--maxw); margin: 0 auto; }

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 26px;
}
.section-title .count { color: var(--text-muted); font-weight: 500; font-size: 18px; }

/* ---------- Makale Grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  opacity: 0.5;
}
.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* Kategori renk kodları */
.cat-haber  { background: #dc2626; }
.cat-rehber { background: var(--blue-500); }
.cat-yerel  { background: #059669; }
.cat-urun   { background: var(--gold-600); }

.post-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.post-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-title a { color: var(--navy-800); }
.post-title a:hover { color: var(--gold-600); }
.post-excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}
.read-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-600);
  align-self: flex-start;
}
.read-more:hover { color: var(--gold-500); }

/* ---------- Boş durum ---------- */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.empty-state p { font-size: 18px; margin-bottom: 20px; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- Sayfalama ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
}
.page-btn {
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.page-btn.is-current {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
  cursor: default;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c6d0e8;
  padding: 50px 20px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: #9aa6c4; font-size: 14.5px; max-width: 340px; }
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9aa6c4; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-col p { font-size: 14.5px; margin-bottom: 9px; color: #9aa6c4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  text-align: center;
  padding: 20px;
  font-size: 13.5px;
  color: #7d89a8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .category-bar { top: 60px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .article-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .blog-hero { padding: 44px 18px; }
  .category-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .cat-chip { white-space: nowrap; }
}



/* ==================================================================
   MAKALE SAYFASI (article page) — header/footer ortak, içerik özel
   ================================================================== */
.logo-img { height: 46px; width: auto; display: block; }
.footer-brand .logo-img { height: 54px; }

/* İçerik kabı */
.article-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 22px;
  line-height: 1.6;
}
.breadcrumb a { color: var(--gold-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #9ca3af; }

/* Makale gövdesi */
.post {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(26,39,68,0.07);
}
.post h1 {
  font-size: 2.05rem;
  line-height: 1.25;
  color: var(--navy-800);
  margin: 0 0 26px;
  letter-spacing: -0.5px;
}
.post h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy-800);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 2px solid #eef1f6;
}
.post h3 {
  font-size: 1.2rem;
  color: var(--navy-700, #24365f);
  margin: 28px 0 12px;
}
.post p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #374151;
  margin: 0 0 18px;
}
.post ul, .post ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 9px;
}
.post a {
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post a:hover { color: var(--gold-500); }
.post strong { color: var(--navy-800); font-weight: 700; }
.post em { color: #4b5563; }
.post hr { border: none; border-top: 1px solid #e5e7eb; margin: 32px 0; }

/* Tablolar */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.post th, .post td {
  border: 1px solid #e5e7eb;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.post thead th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
}
.post tbody tr:nth-child(even) { background: #f8fafc; }

/* CTA kutusu */
.article-cta {
  margin: 36px 0 24px;
  padding: 30px 34px;
  background: linear-gradient(135deg, var(--navy-800), #24365f);
  border-radius: 14px;
  color: var(--white);
  text-align: center;
}
.article-cta h3 { font-size: 1.4rem; margin: 0 0 10px; color: var(--white); }
.article-cta p { margin: 0 0 20px; color: #cdd6ec; font-size: 1.02rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-block;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-800);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.cta-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold-500);
}
.cta-btn-outline:hover { background: rgba(245,158,11,0.15); }

/* Bloga dön */
.back-to-blog {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-600);
  font-weight: 600;
  text-decoration: none;
}
.back-to-blog:hover { text-decoration: underline; }

/* Mobil */
@media (max-width: 640px) {
  .post { padding: 26px 20px; }
  .post h1 { font-size: 1.6rem; }
  .post h2 { font-size: 1.28rem; }
  .article-cta { padding: 24px 18px; }
}
