/* Weddly — Luxury Wedding Theme */

:root {
  --gold: #D4AF37;
  --gold-dark: #A07F1E;
  --gold-light: #EBDBB0;
  --blush: #F2D0C5;
  --blush-dark: #DA8870;
  --ivory: #FDFBF7;
  --champagne: #F7E7CE;
}

body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(242, 208, 197, 0.08), transparent 50%);
  min-height: 100vh;
}

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-script { font-family: 'Great Vibes', cursive; }

/* Elegant gold gradient text */
.gold-text {
  background: linear-gradient(135deg, #D4AF37 0%, #F4E4A0 50%, #A07F1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium buttons */
.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #C9A227 0%, #A07F1E 100%);
}
.btn-gold:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

.btn-outline {
  background: transparent;
  color: #A07F1E;
  font-weight: 600;
  padding: 0.7rem 1.7rem;
  border-radius: 9999px;
  border: 2px solid #D4AF37;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover {
  background: #D4AF37;
  color: white;
}

.btn-ghost {
  background: transparent;
  color: #4B5563;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-ghost:hover { background: #F6EFDF; color: #A07F1E; }

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.12);
}

.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 20px 48px rgba(212,175,55,0.18);
  border-color: rgba(212,175,55,0.3);
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}
.input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #374151;
  font-size: 0.875rem;
}

/* Hero pattern */
.hero-pattern {
  background-image:
    linear-gradient(135deg, rgba(253, 251, 247, 0.95), rgba(247, 231, 206, 0.85)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40m-30 0a30 30 0 1 1 60 0a30 30 0 1 1-60 0' stroke='%23D4AF37' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
}

/* Sidebar nav */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #4B5563;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-link:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(242,208,197,0.08));
  color: #A07F1E;
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(242,208,197,0.15));
  color: #A07F1E;
  font-weight: 600;
  border-left: 3px solid #D4AF37;
}
.sidebar-link i { width: 20px; text-align: center; }

/* Stat cards */
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(212,175,55,0.15);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #F7E7CE);
}

/* Tags / pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-gold { background: #F6EFDF; color: #785E16; }
.pill-green { background: #D1FAE5; color: #065F46; }
.pill-red { background: #FEE2E2; color: #991B1B; }
.pill-blue { background: #DBEAFE; color: #1E40AF; }
.pill-gray { background: #F3F4F6; color: #374151; }
.pill-amber { background: #FEF3C7; color: #92400E; }

/* Divider with ornament */
.ornament-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #D4AF37;
  font-size: 1.5rem;
  margin: 1.5rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  margin: 0 1rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Seating chart - drag and drop */
.seating-table {
  user-select: none;
  cursor: move;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seating-table:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(212,175,55,0.25);
}
.seating-table.round {
  border-radius: 50%;
}
.seating-table.dragging {
  opacity: 0.6;
  z-index: 100;
}
.guest-chip {
  font-size: 0.7rem;
  background: white;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 1px solid #EBDBB0;
  cursor: grab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.guest-chip:hover { background: #FBF8F1; }

/* Print styles for PDF export */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .card, .stat-card { box-shadow: none !important; border: 1px solid #E5E7EB !important; page-break-inside: avoid; }
  .page-break { page-break-after: always; }
}

/* PDF page layout */
.pdf-page {
  max-width: 210mm;
  margin: 0 auto;
  padding: 20mm 15mm;
  background: white;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #FBF8F1; }
::-webkit-scrollbar-thumb { background: #EBDBB0; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

/* Toasts */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: fadeUp 0.3s ease;
}
.toast-success { background: linear-gradient(135deg, #10B981, #059669); }
.toast-error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.toast-info { background: linear-gradient(135deg, #D4AF37, #A07F1E); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: white;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: fadeUp 0.3s ease;
}

/* Wedding hero decoration */
.flourish::before, .flourish::after {
  content: '❦';
  color: #D4AF37;
  margin: 0 0.75rem;
  font-size: 0.8em;
  opacity: 0.7;
}
