/* HalıGo Rehber (blog) — liste ve yazı sayfaları. Menü, footer ve renk değişkenleri /style.css'ten gelir. */
.rb-wrap { max-width: 1120px; margin: 0 auto; padding: 120px 20px 72px; }
.rb-hero { text-align: center; max-width: 720px; margin: 8px auto 28px; }
.rb-hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; letter-spacing: -0.02em; }
.rb-hero p { color: var(--text-body); font-size: 17px; line-height: 1.6; margin: 0; }

.rb-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
.rb-filters button { border: 0; background: var(--bg-subtle); color: var(--text-dark); font: 600 14px 'Inter', sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.rb-filters button.active { background: var(--primary); color: var(--text-white); }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rb-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); transition: transform .15s, box-shadow .15s; }
.rb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.rb-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rb-card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.rb-tag { display: inline-block; align-self: flex-start; background: var(--info-soft); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.rb-card h2 { font-family: 'Poppins', sans-serif; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--text-dark); margin: 12px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card p { color: var(--text-body); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-muted); font-size: 13px; }

/* Yazı sayfası */
.rb-article { max-width: 760px; margin: 0 auto; padding: 104px 20px 72px; }
.rb-crumbs { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.rb-crumbs a { color: var(--text-muted); text-decoration: none; }
.rb-crumbs a:hover { text-decoration: underline; }
.rb-cover { position: relative; border-radius: 18px; overflow: hidden; margin: 0 0 22px; }
.rb-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rb-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.78) 100%); }
.rb-cover h1 { position: absolute; left: 28px; right: 28px; bottom: 22px; z-index: 1; margin: 0; color: var(--text-white); font-family: 'Poppins', sans-serif; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.rb-lead { font-size: 18px; line-height: 1.65; color: var(--text-dark); margin: 14px 0 12px; }
.rb-article .rb-meta { border-top: 0; padding-top: 0; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.rb-toc { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
.rb-toc b { display: block; font-size: 12px; letter-spacing: 0.06em; color: var(--text-dark); margin-bottom: 8px; }
.rb-toc ol { margin: 0; padding-left: 20px; }
.rb-toc li { margin: 4px 0; }
.rb-toc a { color: var(--primary); text-decoration: none; font-size: 15px; }
.rb-body h2 { font-family: 'Poppins', sans-serif; font-size: 22px; line-height: 1.3; color: var(--text-dark); margin: 34px 0 10px; scroll-margin-top: 80px; }
.rb-body p, .rb-body li { font-size: 17px; line-height: 1.75; color: var(--text-dark); }
.rb-body p { margin: 0 0 14px; }
.rb-body ul, .rb-body ol { padding-left: 22px; margin: 0 0 16px; }
.rb-body ul { list-style: disc; }
.rb-body ol, .rb-toc ol { list-style: decimal; }
.rb-body a { color: var(--primary); }
.rb-body blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #25D366; background: #F0FDF4; border-radius: 8px; color: #14532D; font-size: 16px; }
.rb-body table { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 15px; }
.rb-body th, .rb-body td { border: 1px solid var(--border-light); padding: 8px 10px; text-align: left; }
.rb-body th { background: var(--bg-subtle); }
.rb-body hr { border: 0; border-top: 1px solid var(--border-light); margin: 32px 0 24px; }
.rb-shot { margin: 8px auto 20px; max-width: 300px; text-align: center; }
.rb-shot img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border-light); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); }
.rb-shot figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 600px) {
  .rb-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .rb-wrap { padding-top: 96px; }
  .rb-article { padding-top: 88px; }
  .rb-cover h1 { left: 16px; right: 16px; bottom: 14px; }
  .rb-cover img { aspect-ratio: 4 / 3; }
}
