/**
 * Nişan Fotoğraf/Video Paylaşım Sistemi — Temel Bileşen Kütüphanesi
 * Referans: nisan-fotograf-mimari.md Bölüm 15 & nisan-upload-preview.html
 */

/* --- Temel Sıfırlama & Tipografi Kuralları --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WCAG 2.1 AA — Klavye Erişilebilirliği ve Odak Halkası */
:focus-visible {
  outline: 2.5px solid var(--color-gold) !important;
  outline-offset: 2px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--color-gold) !important;
  outline-offset: 2px !important;
}

/* --- İmza: Altın Ayraç Motifi (Signature Gold Divider) --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: dividerFadeIn 0.6s ease forwards;
}

.divider .diamond {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-line {
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.divider-line.right {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

@keyframes dividerFadeIn {
  to {
    opacity: 1;
  }
}

/* --- Karşılama ve Başlık Standartları --- */
.welcome {
  text-align: center;
  margin-bottom: 32px;
}

.welcome .eyebrow,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.welcome h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-size-3xl);
  line-height: 1.15;
  color: var(--color-anchor-deep);
  margin-bottom: 8px;
}

.welcome h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-anchor);
}

/* --- İmzalı Lüks & (Ampersand) Stili --- */
.amp,
.ampersand {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  padding: 0 1px;
}

.welcome p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Kart Bileşeni (Surface Cards) --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.card-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

/* --- Form Girişleri & Alanlar --- */
.field {
  margin-bottom: 14px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  padding: 13px 14px;
  min-height: 46px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.field input[readonly],
.field input:disabled {
  background: #F3ECE7 !important;
  color: var(--color-text-muted) !important;
  cursor: not-allowed !important;
  border-color: var(--color-border) !important;
  user-select: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #B8A9AC;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-gold);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(185, 146, 87, 0.16);
}

.field-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 4px;
}

/* 2'li Grid Satır */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 340px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* --- KVKK Checkbox --- */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.checkbox-field input[type="checkbox"]:checked {
  background: var(--color-anchor);
  border-color: var(--color-anchor);
}

.checkbox-field input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-field input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 146, 87, 0.25);
}

.checkbox-field span {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- İsim Eşleşme Uyarı Kutusu (Name Match) --- */
.name-match {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--color-surface-subtle);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: 10px;
  font-size: var(--font-size-sm);
  color: var(--color-anchor-deep);
  line-height: 1.45;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.name-match.has-error {
  border-color: var(--color-error);
  background: #FFF5F5;
}

.name-match strong {
  font-weight: 700;
}

.name-match-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* --- Butonlar (Buttons & CTA) --- */
.btn {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0);
}

/* Ana Yükleme Butonu (CTA) */
.cta-upload,
.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--color-anchor) 0%, var(--color-anchor-deep) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 17px;
  min-height: 54px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 22px;
  text-decoration: none;
}

.cta-upload:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}

.cta-upload:active,
.btn-primary:active {
  transform: translateY(0);
}

.cta-upload:disabled,
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Chip Butonlar (Seçenek Hapları) */
.chip-btn {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 9px 14px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-anchor);
  background: transparent;
  color: var(--color-anchor);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(107, 42, 60, 0.06);
}

.chip-btn.primary {
  background: var(--color-anchor);
  color: #FFFFFF;
}

.chip-btn.primary:hover {
  background: var(--color-anchor-deep);
}

/* İkincil / Outline Buton */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-anchor);
  color: var(--color-anchor);
  background: rgba(107, 42, 60, 0.04);
}

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid var(--color-error);
  color: var(--color-error);
}

.btn-danger-outline:hover {
  background: var(--color-error);
  color: #FFFFFF;
}

.btn-danger {
  background: var(--color-error);
  color: #FFFFFF;
  border: 1.5px solid transparent;
}

.btn-danger:hover {
  background: #8E1F1F;
}

/* --- Durum Bildirimleri (Status Toast / Alert) --- */
.status-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  animation: toastFadeIn 0.3s ease;
}

.status-toast .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-toast .check svg {
  width: 11px;
  height: 11px;
}

.status-toast.error {
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
  color: var(--color-error);
}

.status-toast.error .check {
  background: var(--color-error);
}

.status-toast.warning {
  background: #FFF9ED;
  border-color: #F0DFC0;
  color: #9C6B1B;
}

.status-toast.warning .check {
  background: #B99257;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- GuestTag Etiketi (Utility / Mono Badge) --- */
.guest-tag {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(43, 30, 34, 0.7);
  color: #FFFFFF;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.guest-tag.light {
  background: var(--color-surface-subtle);
  color: var(--color-anchor-deep);
  border: 1px solid var(--color-border-subtle);
}

/* --- Thumbnail Grid & Kartları --- */
.my-uploads-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.my-uploads-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.my-uploads-head span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8DDD6, #F3E7E2);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.thumb:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.video::after {
  content: '▶';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: rgba(43, 30, 34, 0.65);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  backdrop-filter: blur(2px);
}

/* --- İlerleme Çubuğu (Progress Bar) --- */
.progress-container {
  width: 100%;
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-anchor) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease-out;
}

.progress-fill.gold {
  background: linear-gradient(90deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

/* --- Toggle Switch (Admin Yükleme Aç/Kapa) --- */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.switch-label {
  display: flex;
  flex-direction: column;
}

.switch-label strong {
  font-size: 14px;
  color: var(--color-text);
}

.switch-label span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: 0.2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input:checked + .slider {
  background-color: var(--color-anchor);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

input:focus-visible + .slider {
  box-shadow: 0 0 0 3px rgba(185, 146, 87, 0.3);
}

/* --- Erişilebilirlik & Dokunmatik Cihaz Ayarları --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

@media (hover: none) {
  .cta-upload:hover,
  .btn-primary:hover,
  .thumb:hover {
    transform: none;
    box-shadow: var(--shadow-cta);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Footer & Alt Bilgi Tipografisi --- */
footer,
.guest-footer {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guest-footer .diamond-dot {
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

/* --- Floating Toast Bildirim Konteyneri --- */
.app-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
}

@media (max-width: 640px) {
  .app-toast-container {
    left: 16px;
    right: 16px;
    bottom: 20px;
    align-items: center;
  }
}

.app-floating-toast {
  pointer-events: auto;
  margin-bottom: 0 !important;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* --- Özel Modal Dialog (Confirm & Alert) --- */
.app-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43, 30, 34, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-dialog-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.app-dialog-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-dialog-backdrop.active .app-dialog-card {
  transform: scale(1) translateY(0);
}

.app-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.app-dialog-close:hover {
  color: var(--color-text);
}

.app-dialog-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.app-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-dialog-icon.danger {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.app-dialog-icon.warning {
  background: #FFF9ED;
  color: #B99257;
}

.app-dialog-icon.brand {
  background: rgba(107, 42, 60, 0.08);
  color: var(--color-anchor);
}

.app-dialog-text {
  flex: 1;
}

.app-dialog-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.app-dialog-message {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-dialog-actions .btn {
  padding: 10px 18px;
  font-size: 13.5px;
}

@media (max-width: 400px) {
  .app-dialog-actions {
    flex-direction: column-reverse;
  }
  .app-dialog-actions .btn {
    width: 100%;
  }
}

/* --- Misafir Yüklemeleri Seçim ve Silme --- */
.my-uploads-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8DDD6, #F3E7E2);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.thumb-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: rgba(43, 30, 34, 0.75);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: all var(--transition-fast);
  z-index: 3;
}

.thumb-delete-btn:hover {
  background: var(--color-error);
  transform: scale(1.1);
  opacity: 1;
}

.thumb-processing-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(43, 30, 34, 0.85);
  color: #F8D7DA;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(4px);
  z-index: 2;
  letter-spacing: 0.02em;
}

.thumb-select-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #FFFFFF;
  background: rgba(43, 30, 34, 0.45);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-fast);
}

.selection-mode .thumb-select-checkbox {
  display: flex;
}

.selection-mode .thumb-delete-btn {
  display: none !important;
}

.thumb-item.selected {
  outline: 3px solid var(--color-anchor);
  outline-offset: -2px;
}

.thumb-item.selected .thumb-select-checkbox {
  background: var(--color-anchor);
  border-color: var(--color-anchor);
}

.selection-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: toastFadeIn 0.2s ease;
}

.selection-bar.active {
  display: flex;
}

/* ==========================================================================
   Misafir Yükleme Ekranı: Fotoğraflı Kapak & 2'li Yükleme Seçim Kartları
   ========================================================================== */

/* Romantik Kapak Fotoğrafı Kartı (Hero Cover) */
.hero-cover-card {
  width: 100%;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 32px rgba(107, 42, 60, 0.12), 0 2px 6px rgba(0,0,0,0.06);
  border: 1.5px solid var(--color-border);
  margin-bottom: 24px;
  background: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(107, 42, 60, 0.16);
}

.hero-cover-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(43,30,34,0.3) 50%, rgba(43,30,34,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
}

.hero-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 160, 89, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 8px;
}

.hero-cover-names {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.hero-amp {
  font-family: 'Cormorant Garamond', 'Baskerville', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  padding: 0 4px;
  color: #F7E7CE;
  display: inline-block;
  vertical-align: baseline;
  text-transform: none;
}

/* 2'li Yükleme Seçim Kartları Grid'i */
.upload-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.upload-option-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(107, 42, 60, 0.04);
}

.upload-option-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(107, 42, 60, 0.12);
  background: #FFFDF9;
}

.upload-option-card:active {
  transform: translateY(-1px);
}

.upload-option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--color-border-subtle);
}

.upload-option-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.upload-option-card:hover .upload-option-icon-box {
  transform: scale(1.08);
}

.icon-box-photo {
  background: rgba(197, 160, 89, 0.15);
  color: var(--color-anchor);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.icon-box-video {
  background: rgba(107, 42, 60, 0.12);
  color: var(--color-anchor-deep);
  border: 1px solid rgba(107, 42, 60, 0.3);
}

.upload-option-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-anchor-deep);
  margin-bottom: 4px;
}

.upload-option-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.upload-option-action {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-anchor);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Bilgilendirme ve Sabır Rehberi Modalı (BottomSheet Style) */
.guidelines-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 23, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

.guidelines-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl, 24px);
  border: 1.5px solid var(--color-gold);
  width: 100%;
  max-width: 420px;
  padding: 28px 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@@keyframes modalSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.guidelines-icon-head {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guidelines-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-anchor-deep);
  text-align: center;
  margin-bottom: 4px;
}

.guidelines-subtitle {
  font-size: 12.5px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.guidelines-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  background: #FCF9F5;
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.guidelines-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.2);
  color: var(--color-anchor-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.guidelines-item-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text);
}

.guidelines-item-text strong {
  color: var(--color-anchor-deep);
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

/* Cihaz Hazırlık / Sıkıştırma Animasyonlu Durum Bildirimi */
.processing-notice {
  background: #FFFDF8;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-lg, 16px);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.15);
  animation: pulseGlow 2s infinite ease-in-out;
}

@@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(197, 160, 89, 0.15); }
  50% { box-shadow: 0 6px 22px rgba(197, 160, 89, 0.35); }
}

.spinner-gold {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(197, 160, 89, 0.25);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-gold-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(197, 160, 89, 0.3);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* --- Toplu Yükleme Kuyruğu & Kısmi Başarı Durum Paneli --- */
.upload-queue-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl, 18px);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  animation: modalFadeIn 0.25s ease;
}

.upload-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.upload-queue-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-anchor-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-summary-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-anchor);
  border: 1px solid var(--color-border);
}

.upload-summary-badge.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.upload-summary-badge.warning {
  background: #FFF9ED;
  color: #B99257;
  border-color: #F1DEC0;
}

.upload-summary-badge.error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error-border);
}

.upload-queue-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.upload-queue-list::-webkit-scrollbar {
  width: 5px;
}

.upload-queue-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.upload-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md, 10px);
  background: #FAF6F2;
  border: 1px solid var(--color-border-subtle);
  font-size: 12.5px;
  transition: all var(--transition-fast);
}

.upload-queue-item.active {
  background: #FFFDF9;
  border-color: var(--color-gold);
  box-shadow: 0 2px 6px rgba(185, 146, 87, 0.12);
}

.upload-queue-item.success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}

.upload-queue-item.failed {
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
}

.upload-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.upload-item-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-anchor);
  flex-shrink: 0;
}

.upload-item-name {
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.upload-item-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.upload-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.status-indicator.pending {
  color: var(--color-text-muted);
  background: rgba(122, 106, 110, 0.1);
}

.status-indicator.processing {
  color: var(--color-anchor);
  background: rgba(107, 42, 60, 0.08);
}

.status-indicator.success {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.status-indicator.failed {
  color: var(--color-error);
  background: var(--color-error-bg);
}

.upload-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.btn-retry-failed {
  background: var(--color-anchor);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-retry-failed:hover {
  background: var(--color-anchor-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-retry-failed:active {
  transform: translateY(0);
}
