/* =========================================================================
   Ayelsan Makina — Blog (liste + detay)
   Tema değişkenlerini (style.css :root) kullanır.
   ========================================================================= */
.ays-blog {
  --ays-radius: 14px;
  --ays-radius-sm: 10px;
  --ays-border: var(--th-border-color, #E0E0E0);
  --ays-muted: var(--body-color, #737887);
  --ays-title: var(--title-color, #141D38);
  --ays-accent: var(--theme-color, #e21e24);
  --ays-soft: var(--smoke-color, #F5F5F5);
  --ays-shadow: 0 10px 30px rgba(20, 29, 56, .08);
  --ays-shadow-hover: 0 18px 40px rgba(20, 29, 56, .14);
  color: var(--ays-muted);
}
.ays-blog *, .ays-blog *::before, .ays-blog *::after { box-sizing: border-box; }
.ays-blog a { text-decoration: none; }
.ays-blog img { max-width: 100%; height: auto; }

/* ---------- Hero ---------- */
.ays-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #141D38 0%, #080E1C 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.ays-hero::before,
.ays-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}
.ays-hero::before { width: 520px; height: 520px; right: -140px; top: -220px; }
.ays-hero::after { width: 320px; height: 320px; left: -120px; bottom: -200px; }
.ays-hero .container { position: relative; z-index: 1; }
.ays-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
}
.ays-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .35); }
.ays-crumbs a { color: rgba(255, 255, 255, .85); }
.ays-crumbs a:hover { color: #fff; }
.ays-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  opacity: .85;
  margin-bottom: 10px;
}
.ays-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--ays-accent); }
.ays-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 860px;
}
.ays-hero p.ays-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
  max-width: 680px;
  margin: 0 0 28px;
}
.ays-search {
  display: flex;
  max-width: 560px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.ays-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 48px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--ays-title);
  outline: none;
}
.ays-search button {
  border: 0;
  border-radius: 999px;
  background: var(--ays-accent);
  color: #fff;
  font-weight: 600;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter .2s;
}
.ays-search button:hover { filter: brightness(.92); }

/* ---------- Kategori çipleri ---------- */
.ays-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ays-border);
}
.ays-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.ays-chips::-webkit-scrollbar { display: none; }
.ays-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ays-border);
  color: var(--ays-title);
  font-weight: 500;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s, background .2s, color .2s;
}
.ays-chip small {
  font-size: 12px;
  background: var(--ays-soft);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--ays-muted);
}
.ays-chip:hover { border-color: var(--ays-accent); color: var(--ays-accent); }
.ays-chip.is-active { background: var(--ays-title); border-color: var(--ays-title); color: #fff; }
.ays-chip.is-active small { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Liste ---------- */
.ays-section { padding: 56px 0 80px; }
.ays-result-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
}
.ays-result-info h2 { font-size: 24px; margin: 0; }
.ays-result-info a { color: var(--ays-accent); font-weight: 500; }

.ays-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.ays-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ays-border);
  border-radius: var(--ays-radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.ays-card:hover { transform: translateY(-4px); box-shadow: var(--ays-shadow-hover); border-color: transparent; }
.ays-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ays-soft);
}
.ays-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.ays-card:hover .ays-card-media img { transform: scale(1.05); }
.ays-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ays-accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ays-card-media .ays-badge { position: absolute; left: 16px; top: 16px; }
.ays-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.ays-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ays-muted);
  margin-bottom: 10px;
}
.ays-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ays-meta i { color: var(--ays-accent); font-size: 13px; }
.ays-card h3 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
.ays-card h3 a { color: var(--ays-title); }
.ays-card h3 a:hover { color: var(--ays-accent); }
.ays-card p {
  margin: 0 0 18px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ays-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ays-title);
  font-family: var(--title-font);
  font-weight: 600;
}
.ays-more i { transition: transform .2s; color: var(--ays-accent); }
.ays-more:hover { color: var(--ays-accent); }
.ays-more:hover i { transform: translateX(4px); }

/* Öne çıkan yazı */
.ays-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 1px solid var(--ays-border);
  border-radius: var(--ays-radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--ays-shadow);
}
.ays-featured .ays-card-media { aspect-ratio: auto; min-height: 340px; }
.ays-featured .ays-card-body { padding: 40px; justify-content: center; }
.ays-featured h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; margin: 0 0 14px; }
.ays-featured h2 a { color: var(--ays-title); }
.ays-featured h2 a:hover { color: var(--ays-accent); }
.ays-featured p { font-size: 17px; line-height: 1.7; margin: 0 0 24px; }
.ays-featured-label {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ays-accent);
  margin-bottom: 12px;
}

/* Boş sonuç */
.ays-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--ays-border);
  border-radius: var(--ays-radius);
  background: var(--ays-soft);
}
.ays-empty i { font-size: 40px; color: var(--ays-accent); margin-bottom: 14px; }
.ays-empty h3 { margin: 0 0 8px; }
.ays-empty p { margin: 0 0 20px; }

/* Sayfalama */
.ays-pagination { margin-top: 48px; }
.ays-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ays-pagination a,
.ays-pagination span {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--ays-border);
  color: var(--ays-title);
  font-weight: 600;
  background: #fff;
}
.ays-pagination a:hover { border-color: var(--ays-accent); color: var(--ays-accent); }
.ays-pagination a.active { background: var(--ays-accent); border-color: var(--ays-accent); color: #fff; }
.ays-pagination span { border-color: transparent; }

/* CTA bandı */
.ays-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--ays-radius);
  background: linear-gradient(135deg, var(--ays-accent) 0%, #b0151a 100%);
  color: #fff;
}
.ays-cta h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.ays-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.ays-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ays-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 16px;
  transition: transform .2s, background .2s, color .2s;
}
.ays-btn:hover { transform: translateY(-2px); }
.ays-btn-light { background: #fff; color: var(--ays-title) !important; }
.ays-btn-outline { border: 2px solid rgba(255, 255, 255, .7); color: #fff !important; }
.ays-btn-outline:hover { background: rgba(255, 255, 255, .12); }
.ays-btn-dark { background: var(--ays-title); color: #fff !important; }
.ays-btn-accent { background: var(--ays-accent); color: #fff !important; }

/* ---------- Detay ---------- */
.ays-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--ays-accent);
  z-index: 9999;
  transition: width .1s linear;
}
.ays-post-hero { padding: 56px 0 120px; }
.ays-post-hero h1 { max-width: 920px; }
.ays-post-hero .ays-meta { color: rgba(255, 255, 255, .75); font-size: 15px; margin: 18px 0 0; }
.ays-post-hero .ays-meta i { color: #fff; opacity: .7; }
.ays-cover {
  margin-top: -88px;
  position: relative;
  z-index: 2;
  border-radius: var(--ays-radius);
  overflow: hidden;
  box-shadow: var(--ays-shadow-hover);
  aspect-ratio: 21 / 9;
  background: var(--ays-soft);
}
.ays-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ays-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding: 48px 0 72px;
  align-items: start;
}
.ays-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.ays-widget {
  background: #fff;
  border: 1px solid var(--ays-border);
  border-radius: var(--ays-radius);
  padding: 24px;
}
.ays-widget h4 {
  font-size: 18px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ays-widget h4::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--ays-accent); }
.ays-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ays-toc li { margin: 0; }
.ays-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--ays-border);
  color: var(--ays-muted);
  font-size: 15px;
  line-height: 1.45;
  transition: color .2s, border-color .2s;
}
.ays-toc li.lvl-3 a { padding-left: 28px; font-size: 14px; }
.ays-toc a:hover,
.ays-toc a.is-active { color: var(--ays-accent); border-left-color: var(--ays-accent); }
.ays-side-search { display: flex; border: 1px solid var(--ays-border); border-radius: 10px; overflow: hidden; }
.ays-side-search input { flex: 1; min-width: 0; border: 0; height: 46px; padding: 0 14px; outline: none; }
.ays-side-search button { border: 0; width: 48px; background: var(--ays-title); color: #fff; }
.ays-cat-list { list-style: none; margin: 0; padding: 0; }
.ays-cat-list li + li { border-top: 1px solid var(--ays-border); }
.ays-cat-list a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ays-title); font-weight: 500; }
.ays-cat-list a:hover { color: var(--ays-accent); }
.ays-cat-list small { color: var(--ays-muted); }
.ays-side-cta { background: var(--ays-title); border-color: var(--ays-title); color: rgba(255, 255, 255, .8); }
.ays-side-cta h4 { color: #fff; }
.ays-side-cta p { line-height: 1.6; margin: 0 0 18px; }
.ays-side-cta .ays-btn { width: 100%; height: 48px; }
.ays-side-cta .ays-btn + .ays-btn { margin-top: 10px; }

/* Okunabilir içerik tipografisi */
.ays-prose {
  font-size: 18px;
  line-height: 1.8;
  color: #3d4459;
  max-width: 760px;
  overflow-wrap: anywhere;
}
.ays-prose > *:first-child { margin-top: 0; }
.ays-prose p { margin: 0 0 1.3em; }
.ays-prose h2, .ays-prose h3, .ays-prose h4 { color: var(--ays-title); line-height: 1.3; scroll-margin-top: 90px; }
.ays-prose h2 { font-size: 30px; margin: 1.8em 0 .6em; }
.ays-prose h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.ays-prose h4 { font-size: 19px; margin: 1.3em 0 .4em; }
.ays-prose a { color: var(--ays-accent); text-decoration: underline; text-underline-offset: 3px; }
.ays-prose ul, .ays-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.ays-prose li { margin-bottom: .45em; }
.ays-prose ul li::marker { color: var(--ays-accent); }
.ays-prose strong { color: var(--ays-title); }
.ays-prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--ays-accent);
  background: var(--ays-soft);
  border-radius: 0 var(--ays-radius-sm) var(--ays-radius-sm) 0;
  font-style: italic;
  color: var(--ays-title);
}
.ays-prose img { border-radius: var(--ays-radius-sm); margin: 1em 0; height: auto !important; }
.ays-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.ays-prose th, .ays-prose td { border: 1px solid var(--ays-border); padding: 10px 14px; text-align: left; }
.ays-prose th { background: var(--ays-soft); color: var(--ays-title); }
.ays-prose iframe { max-width: 100%; border-radius: var(--ays-radius-sm); }

.ays-post-footer {
  max-width: 760px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ays-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ays-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ays-tags a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ays-soft);
  color: var(--ays-title);
  font-size: 14px;
}
.ays-tags a:hover { background: var(--ays-accent); color: #fff; }
.ays-share { display: flex; align-items: center; gap: 8px; }
.ays-share > span { font-weight: 600; color: var(--ays-title); margin-right: 4px; }
.ays-share a,
.ays-share button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ays-border);
  background: #fff;
  color: var(--ays-title);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.ays-share a:hover,
.ays-share button:hover { background: var(--ays-accent); border-color: var(--ays-accent); color: #fff; }
.ays-share button.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

.ays-postnav {
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.ays-postnav a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--ays-border);
  border-radius: var(--ays-radius-sm);
  color: var(--ays-title);
  font-weight: 600;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.ays-postnav a small { display: block; color: var(--ays-muted); font-weight: 400; font-size: 13px; margin-bottom: 4px; }
.ays-postnav a:hover { border-color: var(--ays-accent); box-shadow: var(--ays-shadow); }
.ays-postnav .is-next { text-align: right; grid-column: 2; }

.ays-related { padding: 64px 0 24px; background: var(--ays-soft); }
.ays-related h2 { font-size: 30px; margin: 0 0 28px; }

.ays-ask {
  max-width: 760px;
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--ays-radius);
  border: 1px solid var(--ays-border);
  background: #fff;
}
.ays-ask h3 { margin: 0 0 6px; font-size: 24px; }
.ays-ask > p { margin: 0 0 20px; }
.ays-ask .form-control { height: 52px; border-radius: 10px; background: var(--ays-soft); border: 1px solid var(--ays-border); }
.ays-ask .form-control:focus { border-color: var(--ays-accent); background: #fff; box-shadow: none; }
.ays-ask textarea.form-control { height: 130px; padding-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ays-post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 991px) {
  .ays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .ays-featured { grid-template-columns: 1fr; }
  .ays-featured .ays-card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .ays-featured .ays-card-body { padding: 28px; }
  .ays-post-layout { grid-template-columns: 1fr; }
  .ays-sidebar { position: static; }
  .ays-sidebar .ays-toc-widget { display: none; }
  .ays-mobile-toc { display: block !important; }
  .ays-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 575px) {
  .ays-hero { padding: 48px 0 44px; }
  .ays-post-hero { padding: 40px 0 96px; }
  .ays-grid { grid-template-columns: 1fr; }
  .ays-search button span { display: none; }
  .ays-cta { padding: 28px 22px; }
  .ays-cta-actions, .ays-cta-actions .ays-btn { width: 100%; }
  .ays-prose { font-size: 17px; }
  .ays-prose h2 { font-size: 25px; }
  .ays-prose h3 { font-size: 21px; }
  .ays-postnav { grid-template-columns: 1fr; }
  .ays-postnav .is-next { grid-column: auto; }
  .ays-ask { padding: 22px; }
  .ays-cover { margin-top: -72px; border-radius: var(--ays-radius-sm); }
}
.ays-mobile-toc { display: none; max-width: 760px; margin-bottom: 28px; }
.ays-mobile-toc summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--title-font);
  font-weight: 600;
  color: var(--ays-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ays-mobile-toc summary::-webkit-details-marker { display: none; }
.ays-mobile-toc summary::after { content: "\f107"; font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", "FontAwesome"; font-weight: 400; }
.ays-mobile-toc[open] summary { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .ays-blog *, .ays-progress { transition: none !important; }
}
@media (max-width: 767px) {
  /* eski içeriklerdeki satır içi iki yana yaslama dar ekranda boşluk açıyor */
  .ays-prose, .ays-prose [style*="justify"] { text-align: left !important; }
}
