/* Bilgi Merkezi - Premium UX/UI */
:root {
  --bm-primary: #667eea;
  --bm-primary-dark: #5568d3;
  --bm-secondary: #764ba2;
  --bm-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bm-whatsapp: #25d366;
  --bm-text: #1e293b;
  --bm-muted: #64748b;
  --bm-border: #e2e8f0;
  --bm-bg: #f8fafc;
  --bm-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --bm-radius: 12px;
}

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

.bm-hero {
  background: var(--bm-gradient);
  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: var(--bm-gradient);
}

.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: 6px;
  padding: 8px 14px;
  background: var(--bm-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.bm-meta-btn:hover { opacity: 0.9; }

.bm-quick-summary {
  margin-top: 20px;
  padding: 20px 24px;
  background: #fff;
  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: 1rem;
  margin-bottom: 10px;
  color: var(--bm-primary);
}

/* 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 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bm-text);
  margin: 28px 0 12px;
}

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

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

.bm-article__content a {
  color: var(--bm-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* CTA blocks */
.article-cta {
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: var(--bm-radius);
  background: var(--bm-gradient);
  color: #fff;
}

.article-cta--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.article-cta__content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #fff;
}

.article-cta__content p {
  opacity: 0.92;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  color: var(--bm-primary);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}

.article-cta--whatsapp .article-cta__btn {
  color: #128c7e;
}

/* 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; }
  .article-cta { padding: 20px; }
}

.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;
}

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