/* ==========================================================================
   DESIGN SYSTEM - UMADEP / AD BELÉM LAPA
   ========================================================================== */
:root {
  /* Cores Base */
  --bg-primary: #070d19;            /* Azul-marinho ultra profundo */
  --bg-surface: #0f1c3f;            /* Cartão azul de alto contraste */
  --bg-card-grad: linear-gradient(135deg, #0f1c3f 0%, #0a132c 100%);
  
  /* Cores Institucionais e Acentos */
  --accent-gold: #e5a93b;           /* Dourado Nobre */
  --accent-gold-glow: rgba(229, 169, 59, 0.3);
  --accent-cyan: #00d2ff;           /* Azul Neon para Tags de Intercessão */
  --accent-fire: #ff5722;           /* Laranja Fogo para Desafios e Ações */
  --accent-green: #10b981;          /* Verde Esmeralda para Check-in Concluído */

  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-gold: #f6d365;

  /* Bordas e Sombras */
  --border-gold: 1px solid rgba(229, 169, 59, 0.3);
  --border-card: 1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-banner: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 169, 59, 0.15);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: calc(var(--nav-height) + 24px);
  min-height: 100vh;
}

/* ==========================================================================
   CABEÇALHO COM ESTILO BANNER OFICIAL
   ========================================================================== */
.app-header {
  background: linear-gradient(180deg, #0a132c 0%, #070d19 100%);
  border-bottom: 2px solid var(--accent-gold);
  padding: 24px 18px 18px;
  box-shadow: var(--shadow-banner);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  text-align: center;
  margin-bottom: 14px;
}

.badge-tag {
  background: linear-gradient(90deg, var(--accent-gold), #f39c12);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.church-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* Barra de Progresso Semanal */
.progress-bar-container {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: var(--border-card);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-info strong {
  color: var(--accent-gold);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-fire));
  box-shadow: 0 0 10px var(--accent-gold-glow);
  transition: width 0.4s ease;
}

/* ==========================================================================
   ROTEAMENTO E NAVEGAÇÃO (TAB BAR)
   ========================================================================== */
.app-main {
  padding: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.view.active {
  display: block;
}

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

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: #060a14;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(229, 169, 59, 0.2);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.7);
  z-index: 1000;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-icon {
  font-size: 1.3rem;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.nav-btn.active {
  color: var(--accent-gold);
}

.btn-instalar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;

  padding: 14px 22px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;

  font: inherit;
  font-weight: 700;

  color: #0d1b2a;
  background: #ffc107;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.btn-instalar:disabled {
  opacity: 0.6;
  cursor: wait;
}