/* ============================================================
   Kent Bahçesi — içerik/blog/form sayfaları ortak sözlüğü
   (kb-design.css token'larını kullanır; shop.twig ile global yüklenir)
   Agent'lar SADECE bu sınıfları + kb-design.css sınıflarını kullanır.
   ============================================================ */

/* ---- Sayfa başlığı bandı ---- */
.kb-page-head { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; }
.kb-page-head .wrap { max-width: var(--maxw, 1280px); margin: 0 auto; padding: 44px 24px; }
.kb-page-head .kb-eyebrow { color: #cfe6d8; }
.kb-page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.kb-page-head p { font-size: 16px; opacity: .92; max-width: 70ch; line-height: 1.6; }
.kb-page-head .crumb { color: #cfe6d8; padding: 0 0 14px; }
.kb-page-head .crumb a { color: #eaf4ee; }
.kb-page-head .crumb svg { color: #cfe6d8; }

/* ---- İçerik (prose) ---- */
.kb-wrap { max-width: var(--maxw, 1280px); margin: 0 auto; padding: 40px 24px; }
.kb-wrap--narrow { max-width: 820px; }
.kb-content { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.kb-content h2 { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 28px 0 12px; }
.kb-content h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }
.kb-content p { margin-bottom: 14px; }
.kb-content ul, .kb-content ol { margin: 0 0 16px 4px; padding-left: 20px; }
.kb-content ul { list-style: none; padding-left: 0; }
.kb-content ul li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.kb-content ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.kb-content ol li { margin-bottom: 9px; }
.kb-content a { color: var(--green); font-weight: 600; text-decoration: underline; }
.kb-content strong { color: var(--ink); }
.kb-content blockquote { border-left: 3px solid var(--green); background: var(--surface-2); padding: 14px 18px; border-radius: var(--r-sm); margin: 16px 0; color: var(--ink-2); }
.kb-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.kb-content th, .kb-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.kb-content th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.kb-content img { border-radius: var(--r-md); margin: 14px 0; }

/* ---- Form ---- */
.kb-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.kb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kb-field { display: flex; flex-direction: column; gap: 6px; }
.kb-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.kb-input, .kb-textarea, .kb-select {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm, 8px); padding: 11px 13px; font-size: 14.5px; font-family: inherit; transition: .15s;
}
.kb-input:focus, .kb-textarea:focus, .kb-select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.kb-textarea { resize: vertical; min-height: 110px; }
.kb-submit {
  align-self: flex-start; background: var(--green); color: #fff; border: none;
  padding: 13px 30px; border-radius: var(--r-pill, 999px); font-weight: 600; font-size: 15px; cursor: pointer; transition: .15s;
}
.kb-submit:hover { background: var(--green-deep); transform: translateY(-1px); }
.kb-form-note { font-size: 12.5px; color: var(--ink-3); }

/* ---- Genel kart ızgarası (içerik kartları) ---- */
.kb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kb-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.kb-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 22px; box-shadow: var(--shadow-sm); }
.kb-tile .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--green-soft); display: grid; place-items: center; color: var(--green); margin-bottom: 12px; }
.kb-tile .ic svg { width: 22px; height: 22px; }
.kb-tile h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.kb-tile p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---- Blog kartları ---- */
.kb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kb-blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 12px); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.kb-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kb-blog-card__media { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.kb-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kb-blog-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kb-blog-card__date { font-size: 12px; color: var(--ink-3); }
.kb-blog-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.kb-blog-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.kb-blog-card a.more { color: var(--green); font-weight: 600; font-size: 13.5px; }

/* ---- CTA bandı ---- */
.kb-cta-band { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); padding: 30px; text-align: center; }
.kb-cta-band h2 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.kb-cta-band p { color: var(--ink-2); margin-bottom: 18px; }
.kb-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kb-cta-primary { background: var(--green); color: #fff; padding: 12px 26px; border-radius: var(--r-pill); font-weight: 600; }
.kb-cta-primary:hover { background: var(--green-deep); }
.kb-cta-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 12px 26px; border-radius: var(--r-pill); font-weight: 600; }
.kb-cta-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---- Flash mesajı ---- */
.kb-flash { max-width: var(--maxw,1280px); margin: 16px auto 0; padding: 0 24px; }
.kb-flash__box { border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; font-weight: 500; }
.kb-flash--success .kb-flash__box, .kb-flash__box.success { background: var(--green-soft); color: var(--green-deep); border: 1px solid var(--green-line); }
.kb-flash--error .kb-flash__box, .kb-flash__box.error { background: #fbeaea; color: #9a2a2a; border: 1px solid #f0c9c9; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .kb-card-grid, .kb-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-form-grid { grid-template-columns: 1fr; }
  .kb-page-head h1 { font-size: 27px; }
}
@media (max-width: 560px) {
  .kb-card-grid, .kb-blog-grid, .kb-card-grid--2 { grid-template-columns: 1fr; }
  .kb-wrap, .kb-page-head .wrap { padding-left: 16px; padding-right: 16px; }
}
