/* Video üretim sihirbazı — ferah iki sütun düzen */

.wizard-mode .dashboard-sidebar {
  display: none !important;
}

.wizard-mode .dashboard-main {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.wizard-shell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Stepper */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  overflow-x: auto;
}

.wizard-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wizard-stepper-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: all 0.2s;
}

.wizard-stepper-item.done .wizard-stepper-dot {
  border-color: #ffd700;
  background: #ffd700;
  color: #0d1247;
}

.wizard-stepper-item.active .wizard-stepper-dot {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.wizard-stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.wizard-stepper-item.active .wizard-stepper-label,
.wizard-stepper-item.done .wizard-stepper-label {
  color: rgba(255, 255, 255, 0.85);
}

.wizard-stepper-line {
  width: 2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.35rem;
  flex-shrink: 0;
}

.wizard-stepper-item.done + .wizard-stepper-line,
.wizard-stepper-line.done {
  background: rgba(255, 215, 0, 0.45);
}

@media (max-width: 640px) {
  .wizard-stepper-label {
    display: none;
  }
  .wizard-stepper-line {
    width: 1rem;
  }
}

/* İki sütun gövde */
.wizard-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

@media (max-width: 900px) {
  .wizard-body {
    grid-template-columns: 1fr;
  }
  .wizard-preview {
    min-height: 220px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.wizard-preview {
  position: relative;
  min-height: 520px;
  background: linear-gradient(145deg, #0a0e2e 0%, #121836 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.wizard-preview-map.has-map {
  padding: 0;
  background: #0a0e2e;
  min-height: 360px;
  align-items: stretch;
  justify-content: stretch;
}

.wizard-preview-map.has-map #wizardPreviewDefault {
  display: none;
}

.wizard-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 1rem;
  overflow: hidden;
  z-index: 1;
  background: #1a1f3a;
}

.wizard-map-canvas.hidden {
  display: none;
}

.wizard-preview-map .wizard-parcel-tag {
  z-index: 2;
}

.wizard-preview-map.wizard-preview-map--parsel {
  min-height: 420px;
}

.wizard-preview-map.wizard-preview-map--parsel .wizard-map-canvas {
  min-height: 420px;
}

.wizard-preview-map.wizard-preview-map--parsel .wizard-parcel-tag {
  font-size: 0.7rem;
  padding: 0.5rem 0.7rem;
}

.wizard-preview-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.wizard-preview-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.wizard-preview-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wizard-preview-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 240px;
  line-height: 1.5;
}

.wizard-parcel-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.wizard-parcel-tag strong {
  color: #ffd700;
  font-weight: 700;
}

.wizard-format-frame {
  border: 2px dashed rgba(255, 215, 0, 0.35);
  border-radius: 0.75rem;
  background: rgba(255, 215, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  transition: aspect-ratio 0.3s, width 0.3s, height 0.3s;
}

.wizard-format-frame.dikey {
  width: 120px;
  height: 213px;
}

.wizard-format-frame.yatay {
  width: 213px;
  height: 120px;
}

.wizard-format-frame.kare {
  width: 160px;
  height: 160px;
}

/* Sağ panel */
.wizard-panel {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.wizard-panel-head {
  margin-bottom: 1.25rem;
}

.wizard-panel-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.wizard-panel-head p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 0.25rem;
}

/* Üretim adımı — tüm aksiyonlar kaydırmadan görünsün */
.wizard-step[data-step="5"] {
  max-height: none;
  overflow: visible;
  gap: 0.65rem;
}

.wizard-produce-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.wizard-action-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.wizard-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.wizard-progress-box {
  padding: 0.35rem 0;
}

.wizard-step.active {
  display: flex;
}

.wizard-step::-webkit-scrollbar {
  width: 4px;
}

.wizard-step::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.wizard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .wizard-field-row {
    grid-template-columns: 1fr;
  }
}

.wizard-field-row .span-2 {
  grid-column: 1 / -1;
}

/* Format kartları */
.wizard-format-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wizard-format-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 42, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
}

.wizard-format-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
}

.wizard-format-card.active {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.wizard-format-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wizard-format-card-body {
  flex: 1;
  min-width: 0;
}

.wizard-format-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.wizard-format-card-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

.wizard-format-card-res {
  font-size: 0.65rem;
  color: rgba(255, 215, 0, 0.7);
  font-weight: 600;
  flex-shrink: 0;
}

.wizard-format-card-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  margin-left: 0.35rem;
}

/* Alt navigasyon */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard-btn-ghost {
  padding: 0.65rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.wizard-btn-ghost:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.wizard-btn-ghost:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wizard-btn-next {
  flex: 1;
  max-width: 280px;
  margin-left: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
  color: #0d1247;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.wizard-btn-next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

.wizard-btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard-produce-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-info-box {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.wizard-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
  margin-bottom: -0.25rem;
}

/* Üretim adımı — sol panel durum + video önizleme */
.wizard-produce-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 1rem 3.5rem;
}

.wizard-produce-panel.hidden {
  display: none !important;
}

.wizard-produce-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.wizard-produce-status.hidden {
  display: none !important;
}

.wizard-produce-detail {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 300px;
  white-space: pre-line;
}

.wizard-produce-detail.is-error {
  color: #fca5a5;
}

.wizard-produce-detail.is-success {
  color: #86efac;
}

.wizard-produce-mail {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 215, 0, 0.85);
  max-width: 300px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.18);
}

.wizard-produce-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  flex: 1;
  min-height: 0;
  justify-content: center;
}

.wizard-produce-video-wrap.hidden {
  display: none !important;
}

.wizard-produce-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05070f;
  position: relative;
  z-index: 1;
}

/* Önizleme filigranı — indirilmeden ekran kaydını caydırır; indirilen dosyada yok */
.wizard-preview-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
  user-select: none;
  display: none;
}

/* Yalnızca 5. adım (Üretim) — harita ve oynatılan video önizlemesi */
.wizard-preview-map:has(.wizard-produce-panel:not(.hidden)) .wizard-preview-watermark {
  display: block;
}

.wizard-preview-watermark-grid {
  position: absolute;
  left: -45%;
  top: -45%;
  width: 190%;
  height: 190%;
  transform: rotate(-32deg);
  transform-origin: center center;
  opacity: 0.34;
  /* Büyük şeffaf karo + küçük logo — sık tekrar yerine geniş aralıklı ızgara */
  background-image: url("/static/assets/logo/parselix-watermark-tile.svg");
  background-repeat: repeat;
  background-size: 560px 420px;
  background-position: center;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.wizard-produce-video-hint {
  font-size: 0.68rem !important;
  margin: 0;
}

.wizard-preview-map:has(.wizard-produce-panel:not(.hidden)) .wizard-parcel-tag {
  z-index: 6;
}

.wizard-produce-kitaplik {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}

.wizard-produce-kitaplik a {
  color: rgba(255, 215, 0, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-produce-kitaplik a:hover {
  color: #ffe566;
}

.wizard-produce-status .progress-label.is-error {
  color: #fca5a5;
}

.wizard-produce-status .progress-label.is-success {
  color: #86efac;
}

.wizard-step-uyari {
  flex: 1 1 100%;
  order: -1;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.wizard-step-uyari.hidden {
  display: none !important;
}

.wizard-aktif-uretim-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.wizard-aktif-uretim-banner.hidden {
  display: none !important;
}

.wizard-aktif-uretim-banner-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.wizard-aktif-uretim-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.55);
  animation: wizard-uretim-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wizard-uretim-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0);
  }
}

.wizard-aktif-uretim-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.14);
  color: #ffe566;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wizard-aktif-uretim-btn:hover {
  background: rgba(255, 215, 0, 0.22);
  border-color: rgba(255, 215, 0, 0.65);
}

.wizard-nav {
  flex-wrap: wrap;
}

/* Arka plan müziği kartları */
.bg-music-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bg-music-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bg-music-card.is-selected,
.bg-music-card:has(input:checked) {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.06);
}

.bg-music-card input[type="radio"] {
  accent-color: #ffd700;
  flex-shrink: 0;
}

.bg-music-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bg-music-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.bg-music-tag {
  font-size: 0.72rem;
  color: rgba(255, 215, 0, 0.65);
}

.bg-music-upload {
  margin-top: 0.25rem;
}

.bg-music-telif {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.fon-muzik-preview-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.fon-muzik-preview-btn:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.55);
}

.fon-muzik-preview-btn.is-playing {
  background: rgba(255, 215, 0, 0.22);
  border-color: #ffd700;
}

