/* ================================================================
   NYAHENDE EVENTS - SMART DIGITAL INVITATIONS LUXURY DESIGN SYSTEM
   Theme: Royal Emerald, Champagne & Shimmering Gold
   ================================================================ */
:root {
  /* Royal Palette */
  --bg-dark: #071510;
  --bg-card: rgba(13, 37, 28, 0.75);
  --bg-card-solid: #0d281e;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-border: rgba(212, 175, 55, 0.28);
  
  --emerald-900: #04140e;
  --emerald-800: #0a251a;
  --emerald-700: #103929;
  --emerald-600: #1b533d;
  --emerald-500: #2a7a5a;
  
  --gold-primary: #d4af37;
  --gold-light: #fae19c;
  --gold-dark: #997d23;
  --gold-gradient: linear-gradient(135deg, #fae19c 0%, #d4af37 50%, #aa820a 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(250, 225, 156, 0.15) 0%, rgba(212, 175, 55, 0.25) 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);

  --text-primary: #fdfbf7;
  --text-secondary: #c9d6cf;
  --text-muted: #8ca398;
  --text-gold: #f5d77f;

  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Variables for Printable / Clean Views */
[data-theme="light"] {
  --bg-dark: #f8f6f0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #ffffff;
  --bg-glass-border: rgba(212, 175, 55, 0.4);
  --text-primary: #1a2a22;
  --text-secondary: #4a5c53;
  --text-muted: #71847a;
  --text-gold: #9e7d18;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(27, 83, 61, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-script { font-family: var(--font-script); }
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-border {
  border: 1px solid var(--bg-glass-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b1d15;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1eb956;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, #1b533d 0%, #0a251a 100%);
  color: var(--gold-light);
  border: 1px solid var(--bg-glass-border);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #2a7a5a 0%, #103929 100%);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.1rem;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-danger {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-warning {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  background: rgba(7, 21, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar-brand .logo-icon {
  font-size: 1.8rem;
}

.navbar-brand .brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand .brand-sub {
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

/* Pulse Animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse {
  animation: pulseGlow 2s infinite;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gold-light);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .navbar-brand .logo-icon {
    font-size: 1.4rem;
  }
  .navbar-brand .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }
  .navbar-brand .brand-sub {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }
  .navbar-nav {
    display: none; /* In mobile, tabs handle navigation */
  }
  .navbar .btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .glass-card {
    padding: 16px;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    max-height: 94vh;
  }
  .modal-box h3 {
    font-size: 1.2rem;
  }
}
