/* Bilgi Merkezi — site renkleriyle uyumlu */
:root {
  --bm-primary: #7a73ff;
  --bm-primary-dark: #5950e6;
  --bm-primary-light: #9d97ff;
  --bm-accent: #4878de;
  --bm-dark: #0e1e36;
  --bm-dark-mid: #1a2d4d;
  --bm-whatsapp: #25d366;
  --bm-text: #1e293b;
  --bm-muted: #64748b;
  --bm-border: #e2e8f0;
  --bm-bg: #f4f6fb;
  --bm-card-shadow: 0 4px 24px rgba(14, 30, 54, 0.08);
  --bm-radius: 12px;
}

.bm-main, .bm-article {
  background: var(--bm-bg);
  min-height: 60vh;
}

.bm-hero {
  background: linear-gradient(135deg, var(--bm-dark) 0%, var(--bm-dark-mid) 55%, var(--bm-accent) 100%);
  color: #fff;
  padding: 48px 0 56px;
}

.bm-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 16px 0 12px;
}

.bm-hero__desc {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 28px;
}

.bm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.bm-breadcrumb a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}

.bm-breadcrumb a:hover { opacity: 1; text-decoration: underline; }

.bm-article .bm-breadcrumb { color: var(--bm-muted); }
.bm-article .bm-breadcrumb a { color: var(--bm-primary); }

/* Search */
.bm-search__inner {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.bm-search input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--bm-radius);
  font-size: 1rem;
  min-height: 48px;
}

.bm-search__btn {
  padding: 14px 24px;
  background: #fff;
  color: var(--bm-primary);
  border: none;
  border-radius: var(--bm-radius);
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.bm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.bm-filters select {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.9rem;
  min-height: 44px;
}

.bm-filters select option { color: #333; }

/* Grid */
.bm-list-section { padding: 48px 0 64px; }

.bm-results-info {
  color: var(--bm-muted);
  margin-bottom: 24px;
}

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

.bm-card {
  background: #fff;
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.bm-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bm-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
}

.bm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bm-dark) 0%, var(--bm-accent) 100%);
}

.bm-card__icon { font-size: 2.5rem; }

.bm-card__body { padding: 20px; }

.bm-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-primary);
  margin-bottom: 8px;
}

.bm-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.bm-card__excerpt {
  font-size: 0.9rem;
  color: var(--bm-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.bm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--bm-muted);
}

/* Pagination */
.bm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.bm-pagination a {
  padding: 12px 20px;
  background: #fff;
  border-radius: 8px;
  color: var(--bm-primary);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--bm-card-shadow);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bm-pagination__info { color: var(--bm-muted); }

.bm-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: var(--bm-radius);
}

/* Article */
.bm-article { padding: 32px 0 64px; }

.bm-article__header {
  max-width: 800px;
  margin-bottom: 32px;
}

.bm-article__header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--bm-text);
  line-height: 1.3;
  margin: 12px 0;
}

.bm-article__category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--bm-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.bm-article__lead {
  font-size: 1.15rem;
  color: var(--bm-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.bm-article__meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
}

.bm-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--bm-muted);
}

.bm-meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.bm-meta-btn:hover {
  transform: translateY(-1px);
}

.bm-meta-btn--tts {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.bm-meta-btn--tts:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.bm-meta-btn--summary {
  background: #fff;
  color: var(--bm-primary-dark);
  border: 1px solid rgba(122, 115, 255, 0.35);
  box-shadow: 0 2px 10px rgba(14, 30, 54, 0.06);
}

.bm-meta-btn--summary:hover {
  background: rgba(122, 115, 255, 0.08);
  box-shadow: 0 4px 14px rgba(14, 30, 54, 0.1);
  color: var(--bm-primary-dark);
}

.bm-meta-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.bm-meta-btn[aria-expanded="true"].bm-meta-btn--summary {
  background: var(--bm-primary);
  color: #fff;
  border-color: var(--bm-primary);
}

.bm-quick-summary {
  margin-top: 20px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--bm-border);
  border-left: 4px solid var(--bm-primary);
  border-radius: 0 var(--bm-radius) var(--bm-radius) 0;
  box-shadow: var(--bm-card-shadow);
}

.bm-quick-summary h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--bm-primary-dark);
}

/* Layout */
.bm-article__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bm-article__layout { grid-template-columns: 1fr; }
  .bm-article__sidebar { order: -1; }
}

.bm-article__sidebar {
  position: sticky;
  top: 100px;
}

.article-toc {
  background: #fff;
  padding: 20px;
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
}

.article-toc__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bm-text);
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li { margin-bottom: 8px; }

.article-toc li.article-toc__sub {
  padding-left: 16px;
  font-size: 0.9rem;
}

.article-toc a {
  color: var(--bm-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
}

.article-toc a:hover,
.article-toc a.active {
  color: var(--bm-primary);
  font-weight: 600;
}

/* Content */
.bm-article__content {
  background: #fff;
  padding: 32px 40px;
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.bm-article__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bm-text);
  margin: 36px 0 16px;
  padding-top: 8px;
}

.bm-article__content h3:not(.article-cta__title) {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bm-text);
  margin: 28px 0 12px;
}

.bm-article__content .article-cta h3.article-cta__title {
  margin: 0;
  padding-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.bm-article__content p { margin-bottom: 16px; }

.article-hero-image {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bm-card-shadow);
  background: #f1f5f9;
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bm-article__content ul,
.bm-article__content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.bm-article__content a {
  color: var(--bm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(72, 120, 222, 0.35);
  font-weight: 500;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.bm-article__content a:hover {
  color: var(--bm-primary-dark);
  text-decoration-color: var(--bm-primary-dark);
}

/* CTA — tip/stil bazlı okunaklı premium palet */
.article-cta {
  position: relative;
  margin: 36px 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  --cta-fg: #ffffff;
  --cta-fg-muted: rgba(255, 255, 255, 0.82);
  --cta-btn-bg: #ffffff;
  --cta-btn-fg: #0e1e36;
  --cta-btn-hover-bg: #f1f5f9;
  --cta-icon-bg: rgba(255, 255, 255, 0.14);
  --cta-icon-fg: #ffffff;
  --cta-inner-bg: linear-gradient(120deg, #0e1e36 0%, #1a2d4d 100%);
  --cta-border: rgba(122, 115, 255, 0.22);
}

.article-cta__glow { display: none; }

.article-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: var(--cta-inner-bg);
  border: 1px solid var(--cta-border);
  color: var(--cta-fg);
  box-shadow: 0 8px 28px rgba(14, 30, 54, 0.16);
}

/* Varsayılan / gradient stil */
.article-cta--gradient {
  --cta-btn-fg: #5950e6;
}

/* WhatsApp */
.article-cta--whatsapp {
  --cta-inner-bg: linear-gradient(120deg, #047857 0%, #059669 100%);
  --cta-border: rgba(167, 243, 208, 0.35);
  --cta-btn-fg: #047857;
}

/* Teklif */
.article-cta--teklif {
  --cta-inner-bg: linear-gradient(120deg, #1e40af 0%, #2563eb 100%);
  --cta-border: rgba(147, 197, 253, 0.35);
  --cta-btn-fg: #1d4ed8;
}

/* Telefon */
.article-cta--phone {
  --cta-inner-bg: linear-gradient(120deg, #1e293b 0%, #334155 100%);
  --cta-border: rgba(203, 213, 225, 0.25);
  --cta-btn-fg: #1e293b;
}

/* Outline — açık zemin */
.article-cta--outline {
  --cta-fg: #0e1e36;
  --cta-fg-muted: #475569;
  --cta-btn-bg: #0e1e36;
  --cta-btn-fg: #ffffff;
  --cta-btn-hover-bg: #1a2d4d;
  --cta-icon-bg: rgba(122, 115, 255, 0.12);
  --cta-icon-fg: #5950e6;
  --cta-inner-bg: #ffffff;
  --cta-border: #e2e8f0;
}

.article-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cta-icon-bg);
  color: var(--cta-icon-fg);
  flex-shrink: 0;
}

.article-cta__body { min-width: 0; }

.bm-article__content .article-cta .article-cta__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cta-fg-muted) !important;
  margin-bottom: 6px;
}

.bm-article__content .article-cta .article-cta__title,
.bm-article__content .article-cta h3.article-cta__title,
.bm-article__content .article-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--cta-fg) !important;
  line-height: 1.35;
}

.bm-article__content .article-cta .article-cta__desc,
.bm-article__content .article-cta p.article-cta__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cta-fg-muted) !important;
  line-height: 1.55;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--cta-btn-bg);
  color: var(--cta-btn-fg);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 46px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(14, 30, 54, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.article-cta__btn:hover {
  transform: translateY(-1px);
  background: var(--cta-btn-hover-bg);
  color: var(--cta-btn-fg);
}

.article-cta__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.article-cta__btn:hover .article-cta__arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .article-cta__inner {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    text-align: left;
  }

  .article-cta__icon { width: 44px; height: 44px; }

  .article-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Eski CTA yapısı */
.article-cta:not(:has(.article-cta__inner)) {
  padding: 24px 28px;
  background: linear-gradient(120deg, #0e1e36 0%, #1a2d4d 100%);
  color: #fff;
}

.article-cta__content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff !important;
}

.article-cta__content p {
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 16px;
}

/* FAQ */
.article-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--bm-border);
}

.article-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.article-faq__item {
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.article-faq__item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.article-faq__item summary::-webkit-details-marker { display: none; }

.article-faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--bm-primary);
}

.article-faq__item[open] summary::after { content: '−'; }

.article-faq__answer {
  padding: 0 20px 16px;
  color: var(--bm-muted);
  line-height: 1.7;
}

/* Share & Related */
.bm-article__share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.bm-share-btn {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--bm-text);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bm-share-btn--wa {
  background: var(--bm-whatsapp);
  color: #fff;
  border-color: var(--bm-whatsapp);
}

.bm-related { margin-top: 48px; }

.bm-related h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

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

.bm-related__card {
  display: block;
  padding: 20px;
  background: #fff;
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.bm-related__card:hover { transform: translateY(-2px); }

.bm-related__card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--bm-text);
}

.bm-related__card p {
  font-size: 0.875rem;
  color: var(--bm-muted);
  margin-bottom: 10px;
}

.bm-related__meta {
  font-size: 0.75rem;
  color: var(--bm-primary);
}

@media (max-width: 768px) {
  .bm-hero { padding: 32px 0 40px; }
  .bm-search__inner { flex-direction: column; }
  .bm-article__content { padding: 24px 20px; }
  .bm-article__meta-strip { flex-direction: column; align-items: stretch; }
  .bm-meta-btn { justify-content: center; width: 100%; }
}

.bm-draft-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: var(--bm-radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.bm-draft-banner strong {
  font-weight: 700;
}

.bm-content-empty {
  color: var(--bm-muted);
  font-size: 1.05rem;
  padding: 32px 0;
  line-height: 1.6;
}

.bm-content-warning {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 20px 24px;
  border-radius: var(--bm-radius);
  margin-bottom: 24px;
  line-height: 1.6;
}

@media print {
  .bm-article__sidebar,
  .bm-article__share,
  .bm-meta-btn,
  .article-cta { display: none; }
}
