/* ==========================================================================
   GENAXA GLOBAL LAYOUT & UTILITIES (Navy / Teal / Gold Brand)
   ========================================================================== */

/* Ambient Backdrop Glow Effects in Navy, Teal and Gold */
.app-body {
  position: relative;
  background-color: var(--bg-app);
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  background-attachment: fixed;
}

.app-body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(18, 48, 74, 0.45) 0%, rgba(15, 118, 110, 0.25) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.app-body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 167, 44, 0.15) 0%, rgba(15, 118, 110, 0.15) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* App Main Container (Full-bleed, Headerless & Footerless) */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 90px; /* room for floating dock */
  max-width: 1440px;
  margin: 0 auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--genaxa-gold);
}

/* ==========================================================================
   SMOOTH SPA VIEW TRANSITIONS & KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes viewSlideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.view-enter {
  animation: viewSlideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* Staggered card animation classes */
.stagger-1 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards; }
.stagger-2 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards; }
.stagger-3 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards; }
.stagger-4 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards; }
.stagger-5 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.20s backwards; }
.stagger-6 { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards; }

/* ==========================================================================
   GLOBAL TYPOGRAPHY UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4C74E 60%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #12304A 0%, #0F766E 60%, #B88E1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--genaxa-gold); }
.text-teal { color: var(--genaxa-teal-light); }
.text-navy { color: var(--genaxa-navy-light); }
.text-emerald { color: var(--accent-emerald); }
.text-rose { color: var(--accent-rose); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ==========================================================================
   FLEX & GRID UTILITIES
   ========================================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
