/* Ritmiza web: randevu, kurum, etkinlik ve durum sayfaları.
   Ritim motifi: mor zemin üstünde turuncu dalga; seçimler zaman çizelgesi. */
:root {
  --bg: #f6f3fb;
  --sheet: #ffffff;
  --text: #1c1830;
  --muted: #6a6480;
  --line: #e7e1f2;
  --soft: #f1ecfb;
  --purple: #5b3fd0;
  --purple-2: #7c5cf0;
  --purple-ink: #2a1a6e;
  --orange: #f59e42;
  --orange-2: #ff7a59;
  --green: #1f9d6a;
  --red: #d64545;
  --shadow: 0 1px 2px rgba(40, 20, 90, .06), 0 8px 28px rgba(40, 20, 90, .08);
  --radius: 18px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110e1a;
    --sheet: #1b1727;
    --text: #efebf8;
    --muted: #a9a2bd;
    --line: #2d2740;
    --soft: #241e36;
    --purple: #a993ff;
    --purple-2: #8f74ff;
    --purple-ink: #d9d0ff;
    --green: #5fd19c;
    --red: #ff8a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-underline-offset: 3px; }
main { max-width: 680px; margin: 0 auto; padding: 8px 16px 56px; }

/* Üst çubuk */
header.brand { max-width: 680px; margin: 0 auto; padding: 14px 16px 6px; }
header.brand a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92rem;
}
header.brand img { width: 26px; height: 26px; border-radius: 8px; }

/* Kahraman alanı */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px 22px 30px;
  margin: 6px 0 18px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(140deg, #3b22a8 0%, #5b3fd0 45%, #7c5cf0 100%);
  box-shadow: 0 18px 40px rgba(70, 40, 180, .28);
}
.hero::after {
  /* Turuncu ritim dalgası */
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: -36px; height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 110' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 60 20, 120 20, 180 60 S 300 110, 360 60 S 480 10, 540 50 S 600 80, 600 80 V110 H0Z' fill='%23f59e42' fill-opacity='.9'/%3E%3Cpath d='M0 85 C 80 50, 140 60, 210 82 S 330 110, 400 80 S 520 50, 600 74 V110 H0Z' fill='%23ff7a59' fill-opacity='.75'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  pointer-events: none;
}
.hero .mark {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.hero .kicker {
  display: inline-block; margin-top: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffd9b0;
}
.hero h1 { font-size: 1.9rem; line-height: 1.15; margin: 4px 0 6px; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 0; color: rgba(255, 255, 255, .86); max-width: 46ch; position: relative; z-index: 1; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.hero .chip {
  font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
}

/* Bölüm başlığı */
h1 { font-size: 1.6rem; margin: 12px 0 6px; font-weight: 800; letter-spacing: -.02em; }
h2, .step-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.08rem; font-weight: 800; margin: 26px 0 10px; color: var(--text);
}
h2::before, .step-title::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 0 4px rgba(245, 158, 66, .18);
  flex: none;
}
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Kartlar */
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
.card .meta { color: var(--muted); font-size: .9rem; }
.service { cursor: pointer; display: block; transition: border-color .15s, transform .15s; }
.service input { margin-right: 8px; accent-color: var(--purple); }
.service:hover { transform: translateY(-1px); }
.service.selected { border-color: var(--purple); background: var(--soft); }

/* Geri */
button.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 4px 0 8px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--sheet); color: var(--purple);
  font: inherit; font-weight: 700; cursor: pointer;
}
button.back:hover { background: var(--soft); }

/* Seçimler ve seçilmiş adımlar (zaman çizelgesi) */
.steps {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 8px 0;
}
.steps:empty { display: none; }
.step {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px;
  border: 0; border-top: 1px solid var(--line);
  background: transparent; color: var(--text);
  font: inherit; font-size: 1.02rem; font-weight: 700;
  text-align: left; cursor: pointer;
  transition: background .15s;
}
.step:first-child { border-top: 0; }
.step:hover { background: var(--soft); }
.step .txt { flex: 1; min-width: 0; }
.step small { display: block; color: var(--muted); font-size: .84rem; font-weight: 600; margin-top: 2px; }
.step .arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft); color: var(--purple); font-size: 1.15rem; font-weight: 800;
  transition: transform .15s, background .15s, color .15s;
}
.step:hover .arrow { transform: translateX(3px); background: var(--purple); color: #fff; }

.step.done { position: relative; padding-left: 54px; font-weight: 700; background: transparent; }
.step.done::before {
  content: "✓";
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; color: #fff;
  background: var(--green);
}
.step.done small { margin: 0 0 2px; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.step.done .arrow {
  width: auto; height: auto; border-radius: 999px; padding: 4px 10px;
  font-size: .78rem; background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.step.done .arrow::before { content: "Değiştir"; }
.step.done .arrow { font-size: 0; }
.step.done .arrow::before { font-size: .78rem; }
.step.done:hover .arrow { transform: none; background: var(--soft); color: var(--purple); }

/* Etkinlik kartları */
.card.event { display: flex; gap: 14px; align-items: flex-start; }
.date-badge {
  flex: none; width: 58px; padding: 8px 0; border-radius: 16px; text-align: center;
  color: #fff; background: linear-gradient(160deg, var(--purple) 0%, var(--purple-2) 100%);
  box-shadow: 0 6px 16px rgba(91, 63, 208, .28);
}
.date-badge strong { display: block; font-size: 1.4rem; line-height: 1.1; font-weight: 800; }
.date-badge span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-size: 1.05rem; font-weight: 800; }
.seats { height: 6px; border-radius: 3px; background: var(--soft); margin: 12px 0 10px; overflow: hidden; }
.seats span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.event.full { opacity: .7; }
button.pill {
  border: 0; border-radius: 999px; padding: 9px 18px;
  font: inherit; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 6px 14px rgba(245, 120, 70, .3);
}

/* Saatler */
.day {
  margin: 18px 0 8px; font-weight: 800; font-size: .92rem;
  color: var(--purple-ink); text-transform: capitalize;
}
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times button {
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 8px;
  font: inherit; font-weight: 700; font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(40, 20, 90, .05);
  transition: border-color .15s, transform .15s;
}
.times button strong { display: block; font-size: 1rem; }
.times button small { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); margin-top: 1px; }
.times button.selected small { color: rgba(255, 255, 255, .85); }
.times button:hover { border-color: var(--purple); transform: translateY(-1px); }
.times button.selected {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 6px 16px rgba(245, 120, 70, .35);
}

/* Form */
form { margin-top: 4px; }
label.field { display: block; margin: 12px 0; }
label.field span { display: block; font-size: .86rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--sheet);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(91, 63, 208, .14);
}
textarea { min-height: 90px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
button.primary {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font: inherit; font-size: 1.05rem; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  box-shadow: 0 10px 24px rgba(91, 63, 208, .32);
  cursor: pointer;
  margin-top: 10px;
  transition: transform .15s, box-shadow .15s;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(91, 63, 208, .38); }
button.primary:disabled { opacity: .55; cursor: default; transform: none; }
button.secondary {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--sheet);
  color: var(--red);
  font: inherit; font-weight: 700;
  cursor: pointer;
}

/* Durum rozetleri */
.status { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .88rem; }
.status.pending { background: #fff1e0; color: #a0520a; }
.status.confirmed { background: #dff5ea; color: #16704b; }
.status.cancelled, .status.expired { background: var(--soft); color: var(--muted); }
.error {
  color: var(--red); margin: 10px 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(214, 69, 69, .08);
}
.copy { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.hidden { display: none; }
footer {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted); text-align: center;
}
footer a { color: var(--muted); }

/* Yükleniyor */
.loading { display: flex; gap: 6px; justify-content: center; padding: 48px 0; }
.loading span {
  width: 8px; height: 22px; border-radius: 4px; background: var(--purple);
  animation: beat 1s ease-in-out infinite;
}
.loading span:nth-child(2) { animation-delay: .12s; background: var(--purple-2); }
.loading span:nth-child(3) { animation-delay: .24s; background: var(--orange); }
.loading span:nth-child(4) { animation-delay: .36s; background: var(--orange-2); }
@keyframes beat { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .loading span { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 420px) {
  .hero { padding: 22px 18px 28px; border-radius: 24px; }
  .hero h1 { font-size: 1.6rem; }
  .step { padding: 14px 14px; }
  .step.done { padding-left: 48px; }
  .step.done::before { left: 14px; }
}
