/* ==============================================================================
   KORVENIA BUILDER SAYFASI (builder.html, tr/builder.html)
   Yalnızca style.css belirteçleri kullanılır.
   ============================================================================== */

/* Sabit başlığın altında kalmasın */
.bd-page section[id] {
  scroll-margin-top: 90px;
}

/* ---------- Karşılama ---------- */
.bd-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 14px;
}

/* Kısa başlık + hemen altında çalışan demo */
.bd-hero-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.bd-hero-kicker {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Muhtar, yerinde yürür (char_0, aşağı bakan 3 kare) */
.bd-hero-muhtar {
  width: 24px;
  height: 48px;
  background: url("/assets/demo/characters/char_0.png") 0 0 / 168px 144px no-repeat;
  image-rendering: pixelated;
  animation: bd-muhtar-walk 0.6s steps(3) infinite;
}

@keyframes bd-muhtar-walk {
  to { background-position: -72px 0; }
}

.bd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.bd-hero-line {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 auto 30px;
}

.bd-hero-demo {
  position: relative;
  margin-bottom: 72px;
}

/* Demonun arkasında hafif bir kobalt hâle */
.bd-hero-demo::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(47, 75, 214, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bd-hero-muhtar { animation: none; }
}

/* ---------- Özellik satırları: metin + medya, bir sol bir sağ ---------- */
.bd-features {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.bd-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 48px;
}

.bd-feature:nth-child(even) {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.bd-feature:nth-child(even) .bd-feature-text {
  order: 2;
}

.bd-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 12px;
}

.bd-feature-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
}

.bd-feature-list {
  margin-top: 14px;
  padding-left: 1.1em;
  max-width: 46ch;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.bd-feature-list li + li {
  margin-top: 6px;
}

.bd-feature-media {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.08);
}

.bd-feature-media video,
.bd-feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hareketli çizimler (02–05): koyu panel, SVG + SMIL/CSS animasyon. Görsel dosya yok */
.bd-anim {
  background: #1C1A17;
  border-color: #2C2924;
  box-shadow: 0 24px 60px -20px rgba(28, 26, 23, 0.45);
}

.bd-anim svg {
  display: block;
  width: 100%;
  height: auto;
}

.bd-anim text {
  font-family: var(--font-mono);
  font-size: 11px;
}

.bd-anim .bd-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: #F4EEE2;
  fill-opacity: 0.45;
}

.bd-anim .bd-sans {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

.bd-anim .bd-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: #F4EEE2;
}

.bd-flow path {
  animation: bd-dash 0.9s linear infinite;
}

@keyframes bd-dash {
  to { stroke-dashoffset: -9; }
}

/* 04: ajan noktaları hafifçe zıplar */
.bd-bob {
  animation: bd-bob 1.8s ease-in-out infinite;
  transform-box: fill-box;
}

.bd-bob:nth-child(2) { animation-delay: 0.3s; }
.bd-bob:nth-child(3) { animation-delay: 0.6s; }
.bd-bob:nth-child(4) { animation-delay: 0.9s; }

@keyframes bd-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.bd-breathe {
  animation: bd-breathe 2.6s ease-in-out infinite;
}

@keyframes bd-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* 05: ses dalgası ve sırayla beliren mesajlar */
.bd-wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: bd-wave 1.1s ease-in-out infinite;
}

.bd-wave rect:nth-child(3n) { animation-duration: 0.8s; }
.bd-wave rect:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -0.4s; }
.bd-wave rect:nth-child(4n) { animation-delay: -0.7s; }

@keyframes bd-wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.bd-msg {
  opacity: 0;
  transform-box: fill-box;
  animation: 10s ease-out infinite;
}

.bd-msg-1 { animation-name: bd-msg-1; }
.bd-msg-2 { animation-name: bd-msg-2; }
.bd-msg-3 { animation-name: bd-msg-3; }
.bd-msg-4 { animation-name: bd-msg-4; }

@keyframes bd-msg-1 {
  0%, 4% { opacity: 0; transform: translateY(10px); }
  9%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes bd-msg-2 {
  0%, 20% { opacity: 0; transform: translateY(10px); }
  25%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes bd-msg-3 {
  0%, 44% { opacity: 0; transform: translateX(16px); }
  50%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes bd-msg-4 {
  0%, 64% { opacity: 0; transform: translateY(10px); }
  69%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

/* 02 ve 04: kuşbakışı köy meydanı — levhalar, ad etiketleri, ekran ışığı */
.bd-px {
  shape-rendering: crispEdges;
}

.bd-px circle {
  shape-rendering: auto;
}

.bd-anim .px-plaque {
  font-size: 10px;
  font-weight: 700;
  fill: #f2c46b;
}

.bd-anim .px-tag {
  font-size: 9px;
  font-weight: 700;
  fill: #F4EEE2;
}

.bd-anim .px-tag-gold {
  fill: #f2c46b;
}

.px-screen {
  animation: px-screen 2.4s steps(1) infinite;
}

@keyframes px-screen {
  0%, 70% { opacity: 1; }
  71%, 78% { opacity: 0.55; }
  79%, 100% { opacity: 1; }
}

/* 03: köyün hafıza haritası gibi yıldızlar — renk notun türünden (color özniteliği) */
.bd-mem .bd-note circle:nth-child(1) {
  animation: bd-glow 4.8s ease-in-out infinite;
}

.bd-mem .bd-note circle:nth-child(2) {
  fill: currentColor;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 3;
}

.bd-mem .bd-note circle:nth-child(3) {
  fill: #fff;
  animation: bd-twinkle 4.2s ease-in-out infinite;
}

.bd-mem .bd-note:nth-child(3n) circle { animation-delay: -1.6s; }
.bd-mem .bd-note:nth-child(3n+1) circle { animation-delay: -3.1s; animation-duration: 5.4s; }
.bd-mem .bd-note:nth-child(4n) circle { animation-duration: 3.6s; }

@keyframes bd-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes bd-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.bd-mem .bd-orbit {
  animation: bd-orbit 30s linear infinite;
}

.bd-mem .bd-spark {
  animation: bd-spark 5.5s ease-in-out infinite;
}

@keyframes bd-orbit {
  to { transform: rotate(-360deg); }
}

@keyframes bd-spark {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

.bd-mem .bd-label text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: #F4EEE2;
  stroke: #13151c;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
}

.bd-mem .bd-legend {
  font-size: 10px;
  fill: #F4EEE2;
  fill-opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .bd-anim * {
    animation: none !important;
  }
  .bd-msg {
    opacity: 1;
  }
}

/* Medyası henüz olmayan satır: metin tek başına, sırayla sola ve sağa yaslı */
.bd-feature--text {
  grid-template-columns: minmax(0, 1fr);
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.bd-feature--text .bd-feature-text {
  max-width: 560px;
}

.bd-feature--text:nth-child(even) .bd-feature-text {
  justify-self: end;
}

/* ---------- Kendi aboneliğin ---------- */
.bd-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.bd-split .block-header {
  margin-bottom: 0;
}

.bd-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bd-facts li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.bd-facts h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.bd-facts p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- "Bu site Builder'da yapıldı" bandı ---------- */
.kv-made-with {
  margin-bottom: 85px;
  padding: 48px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 75, 214, 0.32), transparent 55%),
    var(--text-main);
  color: var(--bg-page);
  border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(28, 26, 23, 0.45);
}

.kv-made-with-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.6);
  margin-bottom: 16px;
}

.kv-made-with-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 16px;
}

.kv-made-with-accent {
  color: #8FA2FF;
}

.kv-made-with-text {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244, 238, 226, 0.72);
  margin-bottom: 28px;
}

.kv-made-with-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.kv-made-with-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bg-page);
}

.kv-made-with-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8FA2FF;
}

.kv-made-with-steps li:not(:last-child)::after {
  content: "→";
  margin-left: 2px;
  color: rgba(244, 238, 226, 0.4);
}

/* ---------- SSS ---------- */
.bd-faq {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.bd-faq details {
  border-bottom: 1px solid var(--border);
}

.bd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.bd-faq summary::-webkit-details-marker {
  display: none;
}

.bd-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.bd-faq details[open] summary::after {
  transform: rotate(45deg);
}

.bd-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bd-faq details p {
  padding: 0 0 22px;
  max-width: 64ch;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.bd-faq details a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bd-faq details a:hover {
  text-decoration: underline;
}

/* ---------- Kapanış ---------- */
.bd-close {
  text-align: center;
  padding: 72px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.bd-close .block-desc {
  margin: 0 auto 28px;
}

.bd-close .btn-quiet-action {
  max-width: 100%;
  text-align: center;
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .bd-faq summary::after {
    transition: none;
  }
}

/* ---------- Dar ekran ---------- */
@media (max-width: 768px) {
  .bd-features {
    gap: 32px;
  }

  .bd-feature,
  .bd-feature:nth-child(even),
  .bd-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* Telefonda medya her zaman metnin altında */
  .bd-feature:nth-child(even) .bd-feature-text {
    order: 0;
  }

  .bd-feature--text {
    padding: 24px 0 0;
  }

  .bd-feature--text:nth-child(even) .bd-feature-text {
    justify-self: start;
  }

  .kv-made-with {
    margin-bottom: 56px;
    padding: 32px 24px;
  }

  .bd-faq summary {
    font-size: 16.5px;
  }

  .bd-close {
    padding: 48px 20px;
  }
}
