/**
 * Poster aracı — site teması (gül kurusu) ile uyumlu bileşen stilleri
 */
.poster-arac-root *,
.poster-arac-root *::before,
.poster-arac-root *::after {
  box-sizing: border-box;
}

.poster-arac-root .preview-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-arac-root .preview-placeholder {
  padding: 1.5rem;
  color: rgba(190, 18, 60, 0.65);
  text-align: center;
  max-width: 42ch;
  margin: 0 auto;
  font-size: 0.925rem;
  line-height: 1.5;
}

.poster-arac-root .is-hidden {
  display: none !important;
}

.poster-arac-root .preview-image-wrap {
  position: relative;
  width: 100%;
  max-height: min(58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-arac-root .preview-image {
  display: block;
  max-width: 100%;
  max-height: min(58vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.poster-arac-root .preview-grid {
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(190, 18, 60, 0.35);
  box-sizing: content-box;
}

.poster-arac-root .preview-grid__cell {
  border-right: 1px dashed rgba(190, 18, 60, 0.42);
  border-bottom: 1px dashed rgba(190, 18, 60, 0.42);
  box-sizing: border-box;
}

.poster-arac-root .preview-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: rgba(190, 18, 60, 0.55);
  line-height: 1.45;
}

.poster-arac-root .upload-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.poster-arac-root .upload-block__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #9f1239;
}

.poster-arac-root .upload-block input[type="file"] {
  font-size: 0.85rem;
  width: 100%;
}

.poster-arac-root .upload-hint {
  font-size: 0.8rem;
  color: rgba(190, 18, 60, 0.55);
}

.poster-arac-root .settings-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.poster-arac-root .panel-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #881337;
  letter-spacing: -0.02em;
}

.poster-arac-root .panel-lead {
  margin: -0.35rem 0 0;
  font-weight: 500;
  color: rgba(190, 18, 60, 0.7);
  font-size: 0.95rem;
}

.poster-arac-root .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.poster-arac-root .field-group--radio {
  border: 0;
  margin: 0;
  padding: 0;
}

.poster-arac-root .field-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #9f1239;
}

.poster-arac-root .field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(190, 18, 60, 0.55);
}

.poster-arac-root .field-select {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239f1239' d='M1.4 0 6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  background-size: 12px 8px;
  padding: 0.65rem 2.25rem 0.65rem 0.9rem;
  border-radius: 0.75rem;
  font: inherit;
  color: #881337;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.poster-arac-root .field-select:focus {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

.poster-arac-root .choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: #9f1239;
}

.poster-arac-root .choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.poster-arac-root .choice__ui {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid #f9a8d4;
  background: #fff;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.poster-arac-root .choice--radio input:focus-visible + .choice__ui,
.poster-arac-root .choice--checkbox input:focus-visible + .choice__ui {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

.poster-arac-root .choice--radio input:checked + .choice__ui {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.poster-arac-root .choice--radio input:checked + .choice__ui::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #db2777;
}

.poster-arac-root .choice__ui--box {
  border-radius: 5px;
}

.poster-arac-root .choice--checkbox input:checked + .choice__ui--box {
  border-color: #db2777;
  background: #db2777;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.28);
}

.poster-arac-root .choice--checkbox input:checked + .choice__ui--box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.poster-arac-root .field-group--toggle {
  gap: 0.25rem;
}

.poster-arac-root .info-box {
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #881337;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.poster-arac-root .choice--legal {
  margin-top: 0.25rem;
  align-items: flex-start;
}

.poster-arac-root .btn-submit {
  margin-top: 0.35rem;
  border: none;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to right, #f472b6, #ec4899);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.poster-arac-root .btn-submit:hover {
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.42);
}

.poster-arac-root .btn-submit:active {
  transform: translateY(1px);
}

.poster-arac-root .btn-submit:focus-visible {
  outline: 2px solid #db2777;
  outline-offset: 3px;
}

.poster-arac-root .preview-drop-zone.is-dragover {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
}

/* Tam ekran oluşturma beklemesi */
.poster-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 251, 247, 0.94);
  backdrop-filter: blur(6px);
}

.poster-loading-overlay.is-hidden {
  display: none !important;
}

.poster-loading-inner {
  max-width: 22rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 20px 50px -12px rgba(190, 18, 60, 0.15);
}

.poster-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(244, 114, 182, 0.35);
  border-top-color: #db2777;
  border-radius: 50%;
  animation: poster-spin 0.75s linear infinite;
}

@keyframes poster-spin {
  to {
    transform: rotate(360deg);
  }
}

.poster-loading-title {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #881337;
}

.poster-loading-sub {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(190, 18, 60, 0.75);
}

.poster-loading-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.22);
  overflow: hidden;
}

.poster-loading-bar-fill {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f472b6, #ec4899, #f472b6);
  background-size: 200% 100%;
  animation: poster-bar-shimmer 1.35s ease-in-out infinite;
}

@keyframes poster-bar-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(280%);
  }
}
