/* Randevun Gelsin · müşteri randevu sayfası (salon.html) — site.css'in değişkenlerini kullanır */
.bk-body { background: var(--ground); }
.bk { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); }
@media (min-width: 600px) {
  .bk-body { background: #EFE7EA; }
  .bk { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(29, 20, 24, .08); }
}

/* durum ekranları */
.bk-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px 24px; text-align: center; color: var(--ink-2); }
.bk-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--plum-tint); border-top-color: var(--plum); animation: bk-spin .8s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-spinner { animation-duration: 2.4s; } }
.bk-h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); text-wrap: balance; }

/* salon başlığı */
.bk-head { position: relative; }
.bk-cover { height: 150px; background: linear-gradient(135deg, #E6D3DB 0%, #DCC8D0 55%, #E7DCD2 100%); background-size: cover; background-position: center; }
.bk-id { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 20px; margin-top: -36px; position: relative; }
.bk-avatar { flex: none; width: 72px; height: 72px; border-radius: 999px; background: var(--plum); border: 4px solid var(--ground); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; background-size: cover; background-position: center; }
.bk-id-text { min-width: 0; max-width: 100%; }
.bk-name { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; overflow-wrap: anywhere; }
.bk-sector { font-size: 14px; color: var(--ink-3); }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 4px; }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
a.bk-chip:hover { border-color: var(--plum); color: var(--plum); }

/* adımlar */
.bk-steps { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 0px)); background: rgba(250, 246, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 14px; }
.bk-back { flex: none; width: 40px; height: 40px; border-radius: 999px; border: none; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bk-back:hover { background: var(--plum-tint); }
.bk-steps ol { flex: 1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.bk-steps li { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: center; padding-top: 8px; border-top: 3px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-steps li.is-done { border-top-color: var(--plum); color: var(--ink-2); }
.bk-steps li.is-now { border-top-color: var(--plum); color: var(--plum); }

.bk-main { flex: 1; padding: 22px 20px 28px; }
.bk-view { display: flex; flex-direction: column; gap: 14px; }
.bk-h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; text-wrap: balance; }
.bk-h2:focus { outline: none; }
.bk-hint { color: var(--ink-3); font-size: 15px; }
.bk-small { color: var(--ink-3); font-size: 13px; }
.bk-empty { padding: 18px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--line); color: var(--ink-2); font-size: 15px; }

/* hizmetler */
.bk-services { display: flex; flex-direction: column; gap: 18px; }
.bk-cat { display: flex; flex-direction: column; gap: 8px; }
.bk-cat h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bk-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.bk-opt:hover { border-color: #D6C2CB; }
.bk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-opt-name { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.bk-opt-meta { font-size: 13px; color: var(--ink-3); }
.bk-opt-price { flex: none; font-size: 14.5px; font-weight: 800; text-align: right; }
.bk-tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #CDBAC3; display: flex; align-items: center; justify-content: center; color: transparent; background: var(--paper); }
.bk-opt[data-kind="radio"] .bk-tick { border-radius: 999px; }
.bk-opt:has(input:checked) { border-color: var(--plum); background: #FCF7F9; }
.bk-opt:has(input:checked) .bk-tick { background: var(--plum); border-color: var(--plum); color: #fff; }
.bk-opt:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.bk-opt.is-off { opacity: .55; }

/* uzmanlar */
.bk-staff { display: flex; flex-direction: column; gap: 10px; }
.bk-face { flex: none; width: 46px; height: 46px; border-radius: 999px; background: var(--plum-tint); color: var(--plum); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; background-size: cover; background-position: center; }
.bk-face.is-any { background: var(--ink); color: #fff; font-family: var(--sans); font-size: 18px; }

/* gün ve saat */
.bk-pick { font-size: 14px; color: var(--ink-2); padding: 10px 14px; border-radius: 12px; background: var(--plum-tint); }
.bk-cal { border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); padding: 12px 12px 10px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.bk-cal-head b { font-size: 16px; }
.bk-cal-nav { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.bk-cal-nav:disabled { opacity: .35; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-cal-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.bk-cal-day { aspect-ratio: 1; max-width: 100%; min-height: 38px; border-radius: 12px; border: 1.5px solid transparent; background: var(--plum-tint, #F3E6EC); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.bk-cal-day:disabled { background: transparent; color: #B9AEB3; cursor: default; font-weight: 500; }
.bk-cal-day.is-full { text-decoration: line-through; }
.bk-cal-day.is-loading { background: var(--paper); border-color: var(--line); }
.bk-cal-day.is-today { border-color: var(--plum); }
.bk-cal-day[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.bk-cal-legend { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 12px; color: var(--ink-3); }
.bk-cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.bk-cal-legend i.is-free { background: var(--plum-tint, #F3E6EC); }
.bk-cal-legend i.is-full { background: transparent; border: 1.5px solid var(--line); margin-left: 10px; }
.bk-slots-day { font-size: 15px; margin: 18px 0 2px; }
.bk-slots { display: flex; flex-direction: column; gap: 16px; min-height: 120px; }
.bk-slot-group h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bk-slot { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.bk-slot:hover { border-color: var(--plum); }
.bk-slot[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.bk-slots-msg { padding: 22px 16px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--line); text-align: center; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* özet */
.bk-summary { display: flex; flex-direction: column; gap: 0; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bk-sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; font-size: 14.5px; border-top: 1px solid var(--line); }
.bk-sum-row:first-child { border-top: none; }
.bk-sum-row span { color: var(--ink-3); flex: none; }
.bk-sum-row b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bk-sum-row.is-main { background: #FCF7F9; }
.bk-sum-row.is-main b { font-family: var(--serif); font-weight: 400; font-size: 20px; }

/* form */
.bk-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field label { font-size: 14px; font-weight: 700; }
.bk-field label span { font-weight: 500; color: var(--ink-3); }
.bk-field small { font-size: 12.5px; color: var(--ink-3); }
.bk-field input, .bk-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.bk-field textarea { min-height: 70px; resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 31, 71, .15); }
.bk-field input[aria-invalid="true"] { border-color: var(--red); }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.bk-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); }
.bk-check em { color: var(--ink-3); }
.bk-error { padding: 10px 14px; border-radius: 12px; background: #FBEAEA; color: var(--red); font-size: 14px; font-weight: 600; }
.bk-code { text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: .4em; font-variant-numeric: tabular-nums; min-height: 64px !important; }
.bk-testcode { padding: 12px 14px; border-radius: 12px; background: #FFF4DE; color: #6A4A10; font-size: 14px; border: 1px dashed #E2C27C; }
.bk-testcode b { font-size: 18px; letter-spacing: .12em; }
.bk-link { align-self: flex-start; padding: 6px 0; border: none; background: none; color: var(--plum); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bk-link:disabled { color: var(--ink-3); text-decoration: none; cursor: default; }

/* tamam */
.bk-done { align-items: stretch; }
.bk-done-mark { align-self: flex-start; width: 64px; height: 64px; border-radius: 999px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.bk-done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bk-done-actions .btn { width: 100%; height: 52px; font-size: 16px; }

/* alt çubuk */
.bk-bar { position: sticky; bottom: 0; z-index: 6; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(29, 20, 24, .06); }
.bk-bar-in { display: flex; align-items: center; gap: 14px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bk-bar-text { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.bk-bar-text b { display: block; color: var(--ink); font-size: 15px; }
.bk-bar-text.is-warn { color: var(--red); font-weight: 600; }
.bk-cta { flex: none; min-width: 132px; height: 52px; padding: 0 24px; border-radius: 999px; border: none; background: var(--plum); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.bk-cta:hover { background: var(--plum-dark); }
.bk-cta:disabled { background: #CDBAC3; cursor: not-allowed; }
.bk-cta.is-busy { opacity: .7; cursor: progress; }

.bk-powered { padding: 18px 20px 26px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.bk-powered a { color: var(--ink-2); text-decoration: none; font-family: var(--serif); font-size: 15px; }
.bk-powered em { color: var(--plum); }

@media (max-width: 380px) {
  .bk-name { font-size: 24px; }
  .bk-h2 { font-size: 25px; }
  .bk-cta { min-width: 112px; padding: 0 18px; }
}

/* önizleme: örnek işletme seçici */
.bk-demo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 16px; background: var(--night); color: var(--on-night-2); font-size: 13px; }
.bk-demo span { font-weight: 700; margin-right: 4px; }
.bk-demo button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--on-night); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bk-demo button[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.bk-demo-note { background: var(--plum); color: #fff; gap: 8px; }
.bk-demo-note span { background: rgba(255, 255, 255, .18); padding: 2px 8px; border-radius: 999px; }
.bk-demo-note a { color: #fff; font-weight: 800; margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 480px) { .bk-cal-day { aspect-ratio: auto; height: 48px; } }

/* adres + nasıl çalışır: sadece geniş ekranda sol sütunda */
.bk-addr, .bk-how { display: none; }

/* ---------------------------------------------------------------- masaüstü: iki sütun */
@media (min-width: 1000px) {
  .bk-body { background: #EFE7EA; }
  .bk {
    max-width: 1180px; min-height: 0; box-shadow: none; background: transparent;
    display: grid; grid-template-columns: clamp(320px, 30vw, 380px) minmax(0, 1fr); column-gap: clamp(24px, 2.5vw, 32px); align-items: start;
    padding-block: 32px 8px;
    padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
  .bk > .bk-demo { grid-column: 1 / -1; border-radius: 14px; margin-bottom: 12px; }
  .bk > .bk-state { grid-column: 1 / -1; min-height: 60vh; background: var(--paper); border-radius: 24px; border: 1px solid var(--line); }

  /* sol: işletme kartı */
  .bk-head { grid-column: 1; grid-row: span 4; position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; padding-bottom: 26px; box-shadow: 0 20px 60px rgba(29, 20, 24, .06); }
  .bk-cover { height: 170px; }
  .bk-id { padding: 0 26px; margin-top: -42px; }
  .bk-avatar { width: 84px; height: 84px; font-size: 36px; border-color: var(--paper); }
  .bk-name { font-size: 32px; }
  .bk-sector { font-size: 15px; }
  .bk-chips { padding: 14px 26px 0; }
  .bk-addr { display: block; padding: 12px 26px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
  .bk-how { display: flex; flex-direction: column; gap: 14px; margin: 22px 26px 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; counter-reset: how; }
  .bk-how li { counter-increment: how; position: relative; padding-left: 40px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
  .bk-how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--plum-tint); color: var(--plum); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
  .bk-how b { display: block; color: var(--ink); font-size: 15px; }

  /* sağ: randevu kartı (adımlar + içerik + alt çubuk tek kart gibi) */
  .bk-steps, .bk-main, .bk-bar, .bk-powered { grid-column: 2; }
  .bk-steps { margin-top: 0; top: 0; padding: 14px 28px; border: 1px solid var(--line); border-bottom-color: var(--line); border-radius: 24px 24px 0 0; background: rgba(255, 255, 255, .96); }
  .bk-steps li { font-size: 13.5px; padding-top: 10px; }
  .bk-main { background: var(--paper); border-inline: 1px solid var(--line); padding: 34px 40px 40px; min-height: 520px; }
  .bk-bar { border: 1px solid var(--line); border-radius: 0 0 24px 24px; }
  .bk-bar-in { padding: 16px 28px; }
  .bk-bar-text { font-size: 14px; }
  .bk-bar-text b { font-size: 16px; }
  .bk-cta { min-width: 170px; height: 54px; }
  .bk-powered { text-align: left; padding: 18px 4px 24px; }

  /* tamam ekranında sağ kart tek parça */
  .bk-steps[hidden] + .bk-main { border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; }
  .bk-main:has(.bk-done:not([hidden])) { border: 1px solid var(--line); border-radius: 24px; }

  .bk-h2 { font-size: 36px; }
  .bk-hint { font-size: 16px; }
  .bk-view { gap: 18px; }

  /* hizmetler iki sütun */
  .bk-cat > div, .bk-services > .bk-cat { min-width: 0; }
  .bk-cat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bk-cat h3 { grid-column: 1 / -1; margin-top: 4px; }
  .bk-opt { padding: 18px 18px 18px 20px; min-height: 84px; }
  .bk-services .bk-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 8px; align-content: center; min-height: 96px; }
  .bk-services .bk-opt > * { grid-column: 1; }
  .bk-services .bk-opt > .bk-tick { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bk-services .bk-opt-price { text-align: left; color: var(--plum); }
  .bk-opt-name { font-size: 16.5px; }
  .bk-opt-meta { font-size: 14px; }
  .bk-opt-price { font-size: 15.5px; }

  /* uzmanlar iki sütun */
  .bk-staff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  /* saat: takvim solda, saatler sağda */
  .bk-view[data-view="saat"] { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 28px; row-gap: 18px; align-items: start; }
  .bk-view[data-view="saat"][hidden] { display: none; }
  .bk-view[data-view="saat"] > .bk-h2, .bk-view[data-view="saat"] > .bk-pick { grid-column: 1 / -1; }
  .bk-cal { padding: 16px 16px 14px; }
  .bk-cal-day { height: 52px; font-size: 16px; }
  .bk-slots-day { margin-top: 0; }
  .bk-slot-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .bk-slot { min-height: 50px; font-size: 16px; }

  /* onay: özet solda, form sağda */
  .bk-view[data-view="bilgi"] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 28px; align-items: start; }
  .bk-view[data-view="bilgi"][hidden] { display: none; }
  .bk-view[data-view="bilgi"] > .bk-h2 { grid-column: 1 / -1; }
  .bk-view[data-view="bilgi"] .bk-form { margin-top: 0; }

  .bk-view[data-view="kod"] { max-width: 560px; }
  .bk-done { max-width: 680px; }
  .bk-done-actions .btn { white-space: nowrap; padding: 0 18px; }
  .bk-done-actions { flex-direction: row; }
  .bk-done-actions .btn { width: auto; flex: 1; }
}
