/* Sade, JavaScript'siz blog gorunumu.
   Renk paleti Pinterest'in kurumsal renklerinden esinlenmistir (kirmizi
   vurgu, beyaz zemin, yuvarlak kose). Logo veya marka ogesi kullanilmaz. */

:root {
  /* Tema her zaman acik; form ogeleri isletim sistemi koyu modda olsa da
     koyu render edilmesin diye color-scheme sabitleniyor. */
  color-scheme: light;

  --red: #e60023;
  --red-dark: #ad081b;
  --red-soft: #fdeaee;

  --bg: #ffffff;
  --surface: #f7f7f7;
  --fg: #211922;
  --muted: #6e6e6e;
  --line: #e6e6e6;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

a { color: inherit; }

/* --- Üst bar --- */

.site-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--red);
}

.langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.langs a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}

.langs a:hover { background: var(--surface); color: var(--fg); }

.langs a[aria-current="true"] {
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 600;
}

/* --- Başlık --- */

.page-title {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.empty { color: var(--muted); }

/* --- Kart ızgarası --- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }

/* Pinterest'teki gibi cercevesiz kart: yuvarlak gorsel, altinda metin. */
.card {
  display: flex;
  flex-direction: column;
}

.card-image {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card-image:hover img { transform: scale(1.03); }

.grid-sm .card-image img { aspect-ratio: 1 / 1; }

.card-body {
  padding: 14px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }

.card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

/* --- Butonlar --- */

.button {
  display: inline-block;
  padding: 11px 20px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
}

.button:hover { background: var(--red-dark); border-color: var(--red-dark); }

.button.ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: transparent;
}

.button.ghost:hover { background: var(--line); }

/* --- Sayfalama --- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 0;
}

.page-info { color: var(--muted); font-size: 14px; }

/* --- İçerik sayfası --- */

.post { max-width: 720px; margin: 0 auto; }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.post-title {
  font-size: 35px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-image {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.post-image img { width: 100%; }

.post-excerpt {
  font-size: 19px;
  margin: 0 0 24px;
}

/* "Devamını oku": <details> ile, JavaScript olmadan. */

.reveal { margin: 0 0 32px; }

.reveal > summary {
  list-style: none;
  display: inline-block;
}

.reveal > summary::-webkit-details-marker { display: none; }

.reveal > summary::marker { content: ""; }

.reveal[open] > summary { display: none; }

.post-body { margin-top: 8px; }

.post-body h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.post-body p { margin: 0 0 18px; }

.post-body ul { margin: 0 0 18px; padding-left: 22px; }

.post-body li { margin-bottom: 8px; }

/* --- Etiketler / alt bilgi --- */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.tag {
  font-size: 13px;
  color: var(--fg);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
}

.post-source { font-size: 14px; color: var(--muted); }

.post-back { font-size: 15px; margin-top: 28px; }

.post-back a { text-decoration: none; color: var(--red); font-weight: 600; }

.related { margin-top: 64px; }

.related h2 { font-size: 21px; font-weight: 700; margin: 0 0 20px; }

.notice-page .notice { font-size: 18px; }
.notice-page .notice-hint { color: var(--muted); }

/* --- Alt bar --- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .post-title { font-size: 28px; }
  .page-title { font-size: 25px; }
}
