/*
  STYLE REHBERI (hizli bakis)
  - Bu dosya sadece ORTAK stilleri tutar.
  - Sayfa bazli stiller:
    * /assets/css/pages/post.css
    * /assets/css/pages/error.css
    * /assets/css/pages/page.css
    * /assets/css/pages/index.css
    * /assets/css/pages/category.css
*/
:root {
  --surface: #ffffff;
  --surface-alt: #f2f6f9;
  --text: #173447;
  --muted: #49697f;
  --line: #cbd9e3;
  --line-soft: rgba(203, 217, 227, 0.62);
  --line-strong: #9db5c6;
  --accent: #c51c22;
  --accent-dark: #971319;
  --shadow: 0 10px 30px rgba(16, 45, 67, 0.08);
  --container: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Global tipografi ve sayfa arka plani */
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #265780 0%, #dce7ed 50%, #ffffff 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.15; color: var(--text); }
img { max-width: 100%; display: block; }

/* Tum sayfalarda kullanilan max genislik kapsayicisi */
.container {
  width: min(calc(100% - 24px), var(--container));
  margin: 0 auto;
}

/* Header dis bosluk (ustte 5px bosluk buradan kontrol edilir) */
.site-header {
  background: transparent;
  padding-top: 5px;
}

/* Header ic 3 kolon: logo | bos alan/menu | arama */
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr 360px;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 14px 18px;
}

.header-slot {
  display: flex;
  align-items: center;
}

.header-slot--left { justify-content: flex-start; }
.header-slot--center { justify-content: center; }
.header-slot--right {
  justify-content: flex-end;
  width: 360px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

 .brand--logo img {
  width: min(100%, 300px);
  height: auto;
}

/* Header arama kutusu ve focus efekti */
.search-form {
  width: 100%;
  max-width: none;
}

.search-form--inline {
  margin-top: 14px;
  max-width: 520px;
}

.search-form input,
.newsletter__form input {
  width: 100%;
  height: 42px;
  border: 1px solid #c6d7e4;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 12px rgba(26, 74, 105, 0.08);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-form input:focus,
.newsletter__form input:focus {
  border-color: #80a8c6;
  box-shadow: 0 0 0 3px rgba(76, 128, 165, 0.18), 0 8px 20px rgba(26, 74, 105, 0.12);
  background: #fff;
}

/* Tum icerigin icine oturdugu ana panel kutusu */
.site-frame {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Logo alti bilgi satiri (site basligi + tagline) */
.top-strip {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: #f7fafc;
}

.top-strip__title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.top-strip__title strong {
  font-size: 1rem;
}

.top-strip__title span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Ana layout: sol icerik + sag sidebar */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
}

.page-shell--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.page-shell--no-sidebar .content-column {
  border-right: 0;
}

.content-column {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.sidebar-column {
  min-width: 0;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
}

.eyebrow,
.meta,
.sidebar-link span {
  color: #265780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.hero-meta,
.post-item__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.posts {
  padding: 0;
}

.section-heading {
  padding: 16px 18px 0;
}

.section-heading--line {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
  margin-bottom: 0;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* Index/Kategori liste-grid stilleri:
   /assets/css/pages/index.css
   /assets/css/pages/category.css */

/* Sidebar modulleri genel cerceve/bosluk */
.sidebar-section {
  padding: 18px;
  border-bottom: 0;
}

.sidebar-section--ad {
  padding-top: 10px;
  padding-bottom: 10px;
}

.sidebar-ad {
  padding: 12px;
  border: 1px dashed #f08a32;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.98) 0%, rgba(255, 253, 250, 0.96) 100%);
  overflow: hidden;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #b32222;
  font-weight: 700;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(240, 138, 50, 0.15);
}

.sidebar-ad::before {
  content: attr(data-ad-slot);
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d16a15;
}

.sidebar-ad iframe,
.sidebar-ad ins {
  max-width: 100%;
}

.sidebar-ad > * {
  max-width: 100%;
  width: 100%;
  display: block;
}

.sidebar-section + .sidebar-section {
  border-top: 0;
}

/* Index footer widget stilleri:
   /assets/css/pages/index.css */

.sidebar-section .section-heading {
  padding: 0 0 14px;
}

.sidebar-section .section-heading--line {
  margin-left: -18px;
  margin-right: -18px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 12px;
  border-bottom-color: transparent;
}

.sidebar-section .section-heading--line h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1f5ea8;
}

.sidebar-section .section-heading--line h3::before,
.sidebar-section .section-heading--line h3::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  max-width: 54px;
  background: currentColor;
  opacity: 0.34;
}

.sidebar-section .section-heading--line h3::after {
  background: currentColor;
}

.sidebar-column .sidebar-section:nth-of-type(5n + 1) .section-heading--line h3 {
  color: #1f5ea8;
}

.sidebar-column .sidebar-section:nth-of-type(5n + 2) .section-heading--line h3 {
  color: #1f7a3f;
}

.sidebar-column .sidebar-section:nth-of-type(5n + 3) .section-heading--line h3 {
  color: #b03333;
}

.sidebar-column .sidebar-section:nth-of-type(5n + 4) .section-heading--line h3 {
  color: #8a5a15;
}

.sidebar-column .sidebar-section:nth-of-type(5n + 5) .section-heading--line h3 {
  color: #5d3fa3;
}

.sidebar-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-post-list {
  display: grid;
  gap: 8px;
}

.sidebar-post-list--grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.sidebar-post-list--grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}


.sidebar-post-link {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(203, 217, 227, 0.5);
}

.sidebar-post-link--thumb {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.sidebar-post-list:not(.sidebar-post-list--grid2):not(.sidebar-post-list--grid3) .sidebar-post-link:last-child {
  border-bottom: 0;
}

.sidebar-post-list:not(.sidebar-post-list--grid2):not(.sidebar-post-list--grid3) .sidebar-post-link {
  transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar-post-list:not(.sidebar-post-list--grid2):not(.sidebar-post-list--grid3) .sidebar-post-link:hover,
.sidebar-post-list:not(.sidebar-post-list--grid2):not(.sidebar-post-list--grid3) .sidebar-post-link:focus-visible {
  transform: translateY(-3px);
}

.sidebar-post-link__thumb {
  width: 68px;
  height: auto;
  display: block;
  margin: 0;
  padding: 2px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.7) contrast(1.04) brightness(0.95);
  border-radius: 3px;
  border: 1px solid rgba(203, 217, 227, 0.7);
  background: #eef4f8;
  overflow: hidden;
}

.sidebar-post-link__content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sidebar-post-link--grid-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  align-content: start;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.sidebar-post-link--grid-card .sidebar-post-link__media {
  min-height: 98px;
  height: 98px;
}

.sidebar-post-list--grid2 .sidebar-post-link,
.sidebar-post-list--grid3 .sidebar-post-link {
  border-bottom: 0;
}

.sidebar-post-link--grid-card .sidebar-post-link__thumb {
  width: 100%;
  height: 100%;
  min-height: 98px;
  max-height: none;
  border-radius: 3px;
  border: 1px solid rgba(203, 217, 227, 0.7);
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  background: #eef4f8;
  filter: saturate(0.7) contrast(1.04) brightness(0.95);
  overflow: hidden;
}

.sidebar-post-link--grid-card .sidebar-post-link__content {
  gap: 4px;
  padding: 8px 2px 0;
  text-align: center;
}

.sidebar-post-link--grid-card:hover,
.sidebar-post-link--grid-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 42, 61, 0.16);
}

.sidebar-post-link--grid-card strong {
  font-size: 0.77rem;
  line-height: 1.35;
  font-weight: 500;
  color: #1b2530;
}

.sidebar-post-link--grid-card span {
  font-size: 0.82rem;
}

.sidebar-post-link strong {
  font-size: 0.86rem;
  line-height: 1.4;
}

.sidebar-post-list:not(.sidebar-post-list--grid2):not(.sidebar-post-list--grid3) .sidebar-post-link:not(.sidebar-post-link--thumb) .sidebar-post-link__content strong::before {
  content: "»";
  color: #ff8a3c;
  margin-right: 6px;
}

.sidebar-post-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .sidebar-post-list--grid2,
  .sidebar-post-list--grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(38, 87, 128, 0.10);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(38, 87, 128, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sidebar-link:last-child {
  border-bottom: 1px solid rgba(38, 87, 128, 0.10);
}

.sidebar-link:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 87, 128, 0.18);
  box-shadow: 0 14px 28px rgba(38, 87, 128, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(241, 247, 252, 0.98) 100%);
}

.sidebar-link span {
  min-width: 0;
  color: #355267;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.sidebar-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 87, 128, 0.12) 0%, rgba(38, 87, 128, 0.06) 100%);
  color: #214d71;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

/* Kategori adedi tek ise son kart tek basina kalmaz, tam satir kaplar. */
.sidebar-list .sidebar-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.newsletter__form {
  display: grid;
  gap: 10px;
}

/* Buton ailesi: ana ve ikincil butonlar */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, #cf2c31 0%, #b81d22 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(197, 28, 34, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(197, 28, 34, 0.2);
  filter: saturate(0.96) brightness(1.01);
}

.button--secondary {
  border-color: #d8e4ec;
  background: linear-gradient(180deg, #f5f9fc 0%, #e6eef4 100%);
  color: #1f577a;
  box-shadow: 0 10px 20px rgba(32, 76, 104, 0.08);
}

.button--secondary:hover {
  box-shadow: 0 14px 24px rgba(32, 76, 104, 0.12);
  filter: none;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.text-link--strong {
  display: inline-block;
  margin-top: 8px;
}

/* Ortak kutu bloklari (tum sayfalarda kullanilan temel kart kabugu) */
.page-copy,
.page-message {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
}

/* Post detaya ait layout siniflari:
   /assets/css/pages/post.css */

/* Footer: 3 sutun yapisi ve link listeleri */
.site-footer {
  background: transparent;
  margin-top: 0;
  margin-bottom: 5px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 14px 18px;
}

.site-footer__col {
  min-width: 0;
  text-align: center;
}

.site-footer__col strong {
  display: inline-block;
  margin-bottom: 8px;
}

.site-footer__heading {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1d2d3a;
}

.site-footer__col p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer__heading--left::before,
.site-footer__heading--middle::before {
  content: "»";
  margin-right: 8px;
  color: #ff8a3c;
}

.site-footer__heading--right::before {
  content: "»";
  margin-right: 8px;
  color: #ff8a3c;
}

.site-footer__col--middle {
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.site-footer__col--right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.site-footer__block {
  width: min(100%, 260px);
  text-align: left;
}

.site-footer__col--right .site-footer__block {
  margin-left: 34px;
}

.site-footer__heading--middle,
.site-footer__heading--right {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.site-footer__menu {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  margin-top: 2px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-footer__menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 20px;
  color: #4f6677;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.25;
  transition: color 0.16s ease, transform 0.16s ease;
  text-align: left;
  width: 100%;
}

.site-footer__menu-link::before {
  content: "»";
  font-size: 0.8rem;
  color: #7f97aa;
}

.site-footer__menu-link:hover {
  transform: translateX(4px);
  color: #244e69;
}

.site-footer__category-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  justify-items: stretch;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-footer__category-list a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: #4f6677;
  font-weight: 600;
  text-align: left;
  width: 100%;
  transition: color 0.16s ease, transform 0.16s ease;
  font-size: 0.86rem;
  line-height: 1.25;
}

.site-footer__category-list a::before {
  content: "»";
  color: #7f97aa;
  font-size: 0.8rem;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Scroll ile gorunme animasyonu */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet kirilimi */
@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .content-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer__inner,
  .site-header__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-slot {
    justify-content: center;
  }

  .header-slot--left {
    justify-content: center;
  }

  .brand--logo {
    display: inline-flex;
    margin: 0 auto;
  }

  .brand--logo img {
    margin: 0 auto;
  }

  .header-slot--right {
    justify-content: center;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .search-form {
    width: 100%;
    max-width: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .site-footer__col--left {
    grid-column: 1 / -1;
  }

  .site-footer__col--right {
    text-align: left;
  }

  .site-footer__col--right .site-footer__block {
    margin-left: 0;
  }

  .site-footer__menu {
    justify-items: start;
  }

  /* index/category responsive kurallari kendi sayfa css dosyalarindadir */
}

/* Mobil kirilimi */
@media (max-width: 760px) {
  .brand--logo img {
    width: min(100%, 300px);
  }

  .container {
    width: min(calc(100% - 12px), var(--container));
  }

  .sidebar-section,
  .top-strip,
  .article-body,
  .sidebar-card,
  .article-hero,
  .listing-hero,
  .page-copy,
  .page-message,
  .site-footer__inner {
    padding: 14px;
  }

  .site-footer__col--middle,
  .site-footer__col--right {
    align-items: flex-start;
    text-align: left;
  }

  /* index/category mobil kurallari kendi sayfa css dosyalarindadir */
}







/* Liste/grid thumb ve pagination stilleri:
   /assets/css/pages/index.css
   /assets/css/pages/category.css */

/* Header menu linkleri */
.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer__category-list a:hover {
  transform: translateX(4px);
  color: #244e69;
}

