/* Sitenin kendi stilleri: Bootstrap 5 yeterli olmadığında, minimum düzeyde. */

:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Canlı önizleme */
.wds-preview-stage {
  background: #e9ecef;
  overflow-x: auto;
}

.wds-preview-frame {
  display: block;
  width: 100%;
  height: 600px;
  margin: 0 auto;
  border: 0;
  background: #fff;
  transition: width 0.2s ease;
}

/* Tam ekran önizleme sayfası (/preview/{slug}): çerçeve ekranı doldurur, reklam aşağıda */
.wds-pv {
  background: #e9ecef;
}

.wds-pv-stage {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.wds-pv-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 3.5rem);
  min-height: 480px;
  border: 0;
  background: #fff;
  transition: width 0.2s ease;
}

/* Panel kod editörü */
.wds-code {
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  tab-size: 2;
  white-space: pre;
}

.wds-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  background: #e9ecef;
}

/* Model düzeyinde hata yokken boş özet görünmesin (inline style CSP ile engelli) */
.validation-summary-valid {
  display: none;
}

/* ---------- Public site ---------- */

.wds-badge-css {
  background: #f1f3f5;
  color: #212529;
  border: 1px solid #ced4da;
}

.wds-badge-bootstrap {
  background: #ede7f6;
  color: #4a2a8a;
  border: 1px solid #c9b8ea;
}

.wds-badge-tailwind {
  background: #e3f4f8;
  color: #0b5566;
  border: 1px solid #a9dbe6;
}

.wds-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wds-card:hover,
.wds-card:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.wds-card-thumb {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: top;
  width: 100%;
  background: #f1f3f5;
}

.wds-card-placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #adb5bd;
  background: #f1f3f5;
}

.wds-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wds-category-tile .bi {
  font-size: 1.5rem;
}

/* Kod görüntüleyici */
.wds-code-viewer pre[class*="language-"] {
  margin: 0;
  max-height: 32rem;
  border-radius: 0;
  font-size: 0.8125rem;
  background: #fbfbfc;
}

.wds-code-viewer .tab-content {
  border: 1px solid #dee2e6;
  border-top: 0;
}

.wds-pre-line {
  white-space: pre-line;
}

/* Reklam alanları: sabit yükseklik, layout shift olmasın */
.wds-ad {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.wds-ad-inlist {
  min-height: 250px;
}

.wds-ad-unit {
  display: block;
  width: 100%;
}

.wds-hero-lead,
.wds-hero-search {
  max-width: 40rem;
}

.wds-prose {
  max-width: 46rem;
}

/* Hakkımızda: site sahibinin baş harfleri */
.wds-owner-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Bileşen açıklaması (RichText) */
.wds-description {
  max-width: 52rem;
  line-height: 1.7;
}

.wds-description h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.wds-description h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.wds-description code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background: #f1f3f5;
  color: #b02a5b;
  font-size: 0.875em;
}

.wds-description li {
  margin-bottom: 0.35rem;
}
