/* ==========================================
   INDEX STYLES - ARQUIVO PRINCIPAL
   Estilos premium para a página inicial
   ========================================== */

/* SUPORTE ESPECÍFICO PARA iOS SAFARI */
body.ios-device {
  background: #0f172a !important;
  background-image: none !important;
}

body.ios-device.light {
  background: #f8fafc !important;
  background-image: none !important;
}

/* VARIÁVEIS CSS */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  --glow-color: #ff6b6b;
  --neon-blue: #00d4ff;
  --neon-purple: #bd5eff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* RESET E BASE */
body {
  font-family: 'Poppins', sans-serif !important;
  background: var(--gradient-dark) !important;
  background-color: #0c0c0c !important;
  background: -webkit-linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%) !important;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%) !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* CORREÇÃO ESPECÍFICA PARA iOS SAFARI */
@supports (-webkit-appearance: none) {
  body {
    background: #0c0c0c !important;
    background: -webkit-linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%) !important;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%) !important;
  }
  
  body.light {
    background: #f1f5f9 !important;
    background: -webkit-linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #ffffff 100%) !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #ffffff 100%) !important;
  }
}

/* ELEMENTOS DE FUNDO ANIMADOS */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(189, 94, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* HEADER MODERNO COM GLASSMORPHISM */
.modern-header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

/* HERO SECTION */
.hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 50px rgba(79, 172, 254, 0.5);
  margin-bottom: 1.5rem;
  color: #4facfe;
}

@supports not (-webkit-background-clip: text) {
  .hero-title {
    color: #4facfe !important;
    background: none !important;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.8);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-verse {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-verse::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-verse-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.verse-reference {
  color: var(--neon-blue);
  font-weight: 600;
  font-size: 1.1rem;
}

/* CARDS DE MESES */
.month-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.month-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
}

.month-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(31, 38, 135, 0.5);
}

.month-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--neon-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.month-title i {
  font-size: 2rem;
}

.month-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* CARDS DE SERMÕES */
.sermon-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.sermon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sermon-card:hover::before {
  transform: scaleX(1);
}

.sermon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.sermon-number {
  background: var(--gradient-accent);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.sermon-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
}

.sermon-verse {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sermon-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* BOTÕES MODERNOS */
.modern-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s;
}

.modern-btn:hover::before {
  left: 100%;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  color: #ffffff;
  text-decoration: none;
}

/* FOOTER */
.modern-footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  padding: 2rem 0;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .month-title {
    font-size: 2rem;
  }
  
  .hero-verse {
    padding: 1.5rem;
  }
  
  .hero-verse-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .month-title {
    font-size: 1.8rem;
  }
  
  .month-card {
    padding: 1.5rem;
  }
  
  .sermon-card {
    padding: 1rem;
  }
}

/* TEMA CLARO */
body.light {
  color: #1a202c;
}

body.light .hero-verse-text,
body.light .verse-content {
  color: #2d3748;
}

body.light .month-card,
body.light .sermon-card,
body.light .hero-verse {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a202c;
}

body.light .sermon-card:hover {
  color: #1a202c;
}

body.light .month-subtitle,
body.light .sermon-verse,
body.light .sermon-description {
  color: #4a5568;
}

body.light .modern-header {
  background: rgba(255, 255, 255, 0.1);
}

/* iOS SAFARI ESPECÍFICO */
@supports (-webkit-appearance: none) {
  .hero-title {
    color: #4facfe !important;
    background: none !important;
    -webkit-text-fill-color: #4facfe !important;
  }
  
  body.light .hero-title {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
  }
}

/* ==========================================
   PILARES FUNDAMENTAIS - DESIGN PREMIUM
   ========================================== */

.pillars-section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  position: relative;
  margin-bottom: 4rem !important;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.title-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 8px;
  background: var(--gradient-accent);
  filter: blur(10px);
  opacity: 0.3;
  border-radius: 4px;
}

.premium-pillar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  min-height: 320px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.premium-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(79, 172, 254, 0.05) 0%, 
    rgba(0, 242, 254, 0.05) 50%,
    rgba(189, 94, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.premium-pillar-card:hover::before {
  opacity: 1;
}

.premium-pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 172, 254, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(79, 172, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-bg-effect {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.premium-pillar-card:hover .pillar-bg-effect {
  opacity: 1;
}

.pillar-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pillar-icon-wrapper {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(79, 172, 254, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-pillar-card:hover .pillar-icon-circle {
  background: rgba(79, 172, 254, 0.1);
  border-color: var(--neon-blue);
  transform: scale(1.1);
}

.pillar-icon {
  font-size: 2rem;
  color: var(--neon-blue);
  transition: all 0.4s ease;
}

.premium-pillar-card:hover .pillar-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  filter: blur(20px);
}

.premium-pillar-card:hover .icon-glow {
  opacity: 0.3;
}

.pillar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillar-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
  line-height: 1.2;
}

.premium-pillar-card:hover .pillar-title {
  color: var(--neon-blue);
  text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.pillar-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.premium-pillar-card:hover .pillar-description {
  color: rgba(255, 255, 255, 0.9);
}

.pillar-accent-line {
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  margin: 0 auto;
  border-radius: 1px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-pillar-card:hover .pillar-accent-line {
  opacity: 1;
  transform: scaleX(1);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(79, 172, 254, 0.05) 0%, 
    rgba(0, 242, 254, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

.premium-pillar-card:hover .card-hover-effect {
  opacity: 1;
}

/* Cores específicas para cada pilar */
.pillar-1:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(255, 193, 7, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-1:hover .pillar-icon-circle {
  border-color: #ffc107;
}

.pillar-1:hover .pillar-icon,
.pillar-1:hover .pillar-title {
  color: #ffc107;
}

.pillar-2:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(40, 167, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-2:hover .pillar-icon-circle {
  border-color: #28a745;
}

.pillar-2:hover .pillar-icon,
.pillar-2:hover .pillar-title {
  color: #28a745;
}

.pillar-3:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(189, 94, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-3:hover .pillar-icon-circle {
  border-color: var(--neon-purple);
}

.pillar-3:hover .pillar-icon,
.pillar-3:hover .pillar-title {
  color: var(--neon-purple);
}

.pillar-4:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(255, 107, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-4:hover .pillar-icon-circle {
  border-color: var(--glow-color);
}

.pillar-4:hover .pillar-icon,
.pillar-4:hover .pillar-title {
  color: var(--glow-color);
}

/* Responsividade */
@media (max-width: 1200px) {
  .premium-pillar-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .premium-pillar-card {
    min-height: 280px;
    padding: 2rem 1.5rem;
  }
  
  .pillar-icon-circle {
    width: 70px;
    height: 70px;
  }
  
  .pillar-icon {
    font-size: 1.8rem;
  }
  
  .pillar-title {
    font-size: 1.3rem;
  }
}

/* Modo claro */
body.light .premium-pillar-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .pillar-title {
  color: #1a202c;
}

body.light .pillar-description {
  color: #4a5568;
}

body.light .pillar-icon-circle {
  background: rgba(0, 0, 0, 0.05);
}

/* Estilos para versículos dos pilares */
.pillar-verse-content {
  padding: 1.5rem 0;
  text-align: center;
}

.verse-divider {
  width: 40px;
  height: 2px;
  background: var(--gradient-accent);
  margin: 0 auto 1rem;
  border-radius: 1px;
}

.verse-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.verse-reference {
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

body.light .verse-text {
  color: #2d3748;
}

body.light .verse-reference {
  color: #2563eb;
}

/* AJUSTES DE ESPAÇAMENTO ENTRE SEÇÕES */
/* Reduzir espaçamento excessivo entre seções */
.container:not(.hero-section) {
  margin-bottom: 1rem !important;
}

/* Espaçamento específico para seções de mensagens */
.container + .container {
  margin-top: 1rem !important;
}

/* Ajuste para a primeira seção após o hero */
.hero-section + .container {
  margin-top: -2rem !important;
}

/* Ajuste para seções com .content-section */
.content-section {
  padding: 1rem 0;
}

/* Espaçamento otimizado para seções de mensagens */
.messages-section {
  margin-bottom: 2rem !important;
}

.messages-section + .messages-section {
  margin-top: 1rem !important;
}

/* Espaçamento mais compacto no mobile */
@media (max-width: 768px) {
  .container:not(.hero-section) {
    margin-bottom: 2rem !important;
  }
  
  .container + .container {
    margin-top: 1.5rem !important;
  }
  
  .hero-section + .container {
    margin-top: -1rem !important;
  }
  
  .content-section {
    padding: 1.5rem 0;
  }
  
  .messages-section {
    margin-bottom: 1.5rem !important;
  }
  
  .messages-section + .messages-section {
    margin-top: 0.5rem !important;
  }
}
