/* ============================================
   DESIGN TOKENS - HarpasiosApp3
   Sistema de Variaveis CSS Centralizado
   ============================================ */

:root {
   /* ========================================
       CORES PRIMARIAS
       ======================================== */
   --color-primary: #1e40af;
   /* Azul sereno profundo - espiritualidade e confiança */
   --color-primary-light: #3b82f6;
   /* Azul mediado */
   --color-primary-dark: #1e3a8a;
   /* Azul noturno */
   --color-primary-soft: rgba(30, 64, 175, 0.08);
   /* Azul suave para fundos */
   --color-primary-deep: #172554;
   /* Azul oceano profundo */
   --color-primary-rgb: 30, 64, 175;
   /* Para uso com rgba() */

   /* Sacred Digitalism Institutional Palette */
   --color-serene-blue: #1e40af;
   --color-deep-blue: #172554;
   --accent-gold: #d4af37;

   /* ========================================
       CORES DE DESTAQUE
       ======================================== */
   --color-accent: #c5a059;
   /* Dourado - institucional */
   --color-accent-light: #d4b76a;
   --color-accent-dark: #a88842;
   --color-accent-rgb: 197, 160, 89;

   /* ========================================
       CORES NEUTRAS
       ======================================== */
   --color-bg: #f5f6fa;
   /* Fundo geral */
   --color-bg-alt: #eef0f5;
   /* Fundo alternativo */
   --color-surface: #ffffff;
   /* Cards e superficies */
   --color-surface-hover: #f8f9fa;
   /* Hover em superficies */

   --color-text: #1e272e;
   /* Texto principal */
   --color-text-secondary: #2c3e50;
   /* Texto secundario */
   --color-text-muted: #6b7280;
   /* Texto discreto */
   --color-text-light: #9ca3af;
   /* Texto muito claro */

   /* ========================================
       CORES DE HEADER/NAVIGATION
       ======================================== */
   --color-header: #1e40af;
   /* Azul Sereno */
   --color-header-light: #3b82f6;
   /* Azul Mediado */
   --color-nav: #1e3a8a;
   /* Azul Noturno */
   --color-nav-hover: #1e40af;
   /* Hover na navegacao */

   /* ========================================
       CORES DE STATUS
       ======================================== */
   --color-success: #059669;
   --color-success-light: #d1fae5;
   --color-success-dark: #065f46;

   --color-error: #dc2626;
   --color-error-light: #fee2e2;
   --color-error-dark: #991b1b;

   --color-warning: #d97706;
   --color-warning-light: #fef3c7;
   --color-warning-dark: #92400e;

   --color-info: #3b82f6;
   --color-info-light: #dbeafe;
   --color-info-dark: #1e40af;

   /* ========================================
       BORDAS
       ======================================== */
   --color-border: #e5e7eb;
   --color-border-light: #f3f4f6;
   --color-border-dark: #d1d5db;

   /* ========================================
       TIPOGRAFIA
       ======================================== */
   --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
   --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

   /* Tamanhos de fonte */
   --text-xs: 0.75rem;
   /* 12px */
   --text-sm: 0.875rem;
   /* 14px */
   --text-base: 1rem;
   /* 16px */
   --text-lg: 1.125rem;
   /* 18px */
   --text-xl: 1.25rem;
   /* 20px */
   --text-2xl: 1.5rem;
   /* 24px */
   --text-3xl: 1.875rem;
   /* 30px */
   --text-4xl: 2.25rem;
   /* 36px */

   /* Pesos de fonte */
   --font-light: 300;
   --font-normal: 400;
   --font-medium: 500;
   --font-semibold: 600;
   --font-bold: 700;

   /* Line heights */
   --leading-tight: 1.25;
   --leading-normal: 1.5;
   --leading-relaxed: 1.625;

   /* ========================================
       ESPACAMENTO
       ======================================== */
   --spacing-1: 0.25rem;
   /* 4px */
   --spacing-2: 0.5rem;
   /* 8px */
   --spacing-3: 0.75rem;
   /* 12px */
   --spacing-4: 1rem;
   /* 16px */
   --spacing-5: 1.25rem;
   /* 20px */
   --spacing-6: 1.5rem;
   /* 24px */
   --spacing-8: 2rem;
   /* 32px */
   --spacing-10: 2.5rem;
   /* 40px */
   --spacing-12: 3rem;
   /* 48px */

   /* ========================================
       BORDER RADIUS (Suave 8-12px)
       ======================================== */
   --radius-sm: 6px;
   --radius-md: 8px;
   --radius-lg: 12px;
   --radius-xl: 16px;
   --radius-full: 9999px;

   /* ========================================
       SOMBRAS
       ======================================== */
   --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

   /* ========================================
       TRANSICOES
       ======================================== */
   --transition-fast: 150ms ease;
   --transition-base: 200ms ease;
   --transition-slow: 300ms ease;

   /* ========================================
       Z-INDEX
       ======================================== */
   --z-dropdown: 100;
   --z-sticky: 200;
   --z-fixed: 300;
   --z-overlay: 1000;
   --z-modal: 1100;
   --z-popover: 1200;
   --z-tooltip: 1300;

   /* ========================================
       LAYOUT
       ======================================== */
   --header-height: 56px;
   --footer-height: 72px;
   --sidebar-width: 240px;
   --content-max-width: 1400px;

   /* Sacred Digitalism System Tokens */
   --sacred-banner-height: 220px;
   --sacred-icon-size: 100px;
}

/* ============================================
   CLASSES UTILITARIAS
   ============================================ */

/* Textos */
.text-primary {
   color: var(--color-primary);
}

.text-accent {
   color: var(--color-accent);
}

.text-muted {
   color: var(--color-text-muted);
}

.text-success {
   color: var(--color-success);
}

.text-error {
   color: var(--color-error);
}

.text-warning {
   color: var(--color-warning);
}

/* Backgrounds */
.bg-primary {
   background-color: var(--color-primary);
}

.bg-accent {
   background-color: var(--color-accent);
}

.bg-surface {
   background-color: var(--color-surface);
}

.bg-success-light {
   background-color: var(--color-success-light);
}

.bg-error-light {
   background-color: var(--color-error-light);
}

/* Fontes */
.font-display {
   font-family: var(--font-display);
}

.font-mono {
   font-family: var(--font-mono);
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.pwa-install-banner {
   position: fixed;
   bottom: 20px;
   left: 50%;
   transform: translateX(-50%);
   width: calc(100% - 40px);
   max-width: 600px;
   z-index: var(--z-modal);
   background: #fffbeb; /* Light yellowish */
   border: 1px solid #fde68a;
   color: #92400e;
   padding: 12px 16px;
   border-radius: var(--radius-lg);
   box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   animation: pwaSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-banner-content {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: var(--text-sm);
   font-weight: 600;
   line-height: 1.4;
}

.pwa-banner-content i {
   font-size: 1.5rem;
   color: var(--accent-gold);
}

.pwa-banner-actions {
   display: flex;
   align-items: center;
   gap: 8px;
}

.btn-pwa-install {
   background-color: var(--color-primary);
   color: white;
   border: none;
   padding: 8px 16px;
   border-radius: var(--radius-md);
   font-size: var(--text-xs);
   font-weight: 800;
   cursor: pointer;
   white-space: nowrap;
   transition: all 0.2s;
}

.btn-pwa-install:hover {
   background-color: var(--color-primary-dark);
   transform: scale(1.05);
}

.btn-pwa-close {
   background: transparent;
   border: none;
   color: #d97706;
   cursor: pointer;
   padding: 8px;
   font-size: 1.1rem;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: transform 0.2s;
}

.btn-pwa-close:hover {
   transform: translateY(2px);
}

@keyframes pwaSlideUp {
   from {
      opacity: 0;
      transform: translate(-50%, 30px);
   }
   to {
      opacity: 1;
      transform: translate(-50%, 0);
   }
}

@media (max-width: 640px) {
   .pwa-install-banner {
      bottom: 10px;
      width: calc(100% - 20px);
      padding: 10px;
      flex-direction: column;
      text-align: center;
   }
   .pwa-banner-content {
      flex-direction: column;
      gap: 4px;
   }
}