/* =============================================
   QR Nişan Fotoğraf Sistemi — Global Stiller
   Oğulcan & Burcu ❤️
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Great+Vibes&display=swap');

/* ── Tokens ──────────────────────────────── */
:root {
  --gold:       #d4b886;
  --gold-light: #e6d3a8;
  --gold-dark:  #b59660;
  --rose:       #d8b8b8; /* Çok uçuk pudra/inci rengi */
  --rose-light: #ebd6d6;
  --rose-dark:  #b59090;

  /* İnci/Fildişi (Ivory/Pearl) Tema Temeli */
  --bg-base:    #fbf9f6;
  --bg-1:       #f2ebd9;
  --bg-2:       #e8dfca;
  --bg-3:       #dcd0b8;

  --glass-bg:   rgba(251, 249, 246, 0.85);
  --glass-border: rgba(212, 184, 134, 0.4);

  --text-primary:   #2a2825; /* Koyu kömür/kahve siyahı */
  --text-secondary: #5c554b;
  --text-muted:     #8f8677;

  --success: #6ba370;
  --error:   #c05c5c;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-gold: 0 4px 24px rgba(201,168,76,0.3);
  --shadow-deep: 0 12px 40px rgba(0,0,0,0.08);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background Patterns ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Şam deseni (Damask) / Lüks efekt için yarı saydam overlay */
  background-image: radial-gradient(circle at center, rgba(212,175,55,0.06) 0%, transparent 60%);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ──────────────────────────── */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-elegant { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

/* ── Glass Card ──────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  box-shadow: 0 4px 16px rgba(42,40,37,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #1a1917;
  box-shadow: 0 8px 24px rgba(42,40,37,0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(212,184,134,0.1);
  border-color: var(--gold-dark);
  color: var(--text-primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}

.btn-danger {
  background: rgba(235, 87, 87, 0.15);
  border: 1px solid rgba(235,87,87,0.3);
  color: var(--error);
}
.btn-danger:hover { background: rgba(235,87,87,0.25); }

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Golden Divider ──────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ── Badge ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
}

.badge-rose {
  background: rgba(212,184,134,0.15);
  border: 1px solid rgba(212,184,134,0.3);
  color: var(--rose-light);
}

/* ── Progress Bar ────────────────────────── */
.progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
}

/* ── Floral Ornament SVG ─────────────────── */
.ornament {
  display: block;
  margin: 0 auto;
  opacity: 0.5;
}

/* ── Inputs ──────────────────────────────── */
input, select, textarea {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

input::placeholder { color: var(--text-muted); }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group { margin-bottom: 16px; }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Utility ─────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-rose  { color: var(--rose); }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 0.85rem; }
.text-xs    { font-size: 0.75rem; }
.text-center { text-align: center; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }

/* ── Toast ───────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  min-width: 280px;
  max-width: 90vw;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  animation: toast-in 0.3s ease forwards;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: rgba(111,207,151,0.15);
  border: 1px solid rgba(111,207,151,0.4);
  color: var(--success);
}
.toast-error {
  background: rgba(235,87,87,0.15);
  border: 1px solid rgba(235,87,87,0.4);
  color: var(--error);
}
.toast-info {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Page Header ─────────────────────────── */
.page-header {
  text-align: center;
  padding: 40px 24px 24px;
  position: relative;
  z-index: 1;
}

.couple-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 400;
  text-shadow: none;
  white-space: nowrap;
}

.heart-icon {
  font-size: 0.6em;
  -webkit-text-fill-color: var(--gold-dark);
  display: inline-block;
  vertical-align: middle;
  animation: none;
  font-family: 'Inter', sans-serif;
  margin: 0 4px;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%  { transform: scale(1.15); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.1); }
  56%  { transform: scale(1); }
}

.page-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
  .btn-lg { padding: 16px 24px; }
  .p-4 { padding: 20px; }
  .p-3 { padding: 16px; }
}
