/* Importação de fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Reset e Variáveis de Design */
:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  
  /* Cores Base */
  --bg-main: #090a10;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  
  /* Gradientes e Acentos */
  --color-accent-1: #6366f1; /* Indigo */
  --color-accent-2: #a855f7; /* Roxo */
  --color-accent-3: #06b6d4; /* Ciano */
  
  /* Cores dos Botões */
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-border: rgba(255, 255, 255, 0.06);
  --btn-border-hover: rgba(99, 102, 241, 0.4);
  --btn-glow-shadow: rgba(99, 102, 241, 0.15);

  /* Container Glassmorphism */
  --container-bg: rgba(15, 17, 28, 0.45);
  --container-border: rgba(255, 255, 255, 0.07);
  --container-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);

  /* Badge "Em Construção" */
  --badge-bg: rgba(245, 158, 11, 0.08);
  --badge-border: rgba(245, 158, 11, 0.2);
  --badge-color: #f59e0b;

  /* Fontes e Textos */
  --logo-gradient: linear-gradient(135deg, #fff 60%, var(--text-secondary) 100%);
  --title-gradient: linear-gradient(135deg, #ffffff 30%, #a855f7 70%, #6366f1 100%);

  /* Imagem de Fundo Overlay */
  --bg-image-overlay: linear-gradient(to bottom, rgba(9, 10, 16, 0.75), rgba(9, 10, 16, 0.95));

  /* Opacidade das luzes de fundo */
  --glow-opacity-1: 0.15;
  --glow-opacity-2: 0.15;
  --glow-opacity-3: 0.08;
}

/* Redefinições para Tema Claro */
body.light-theme {
  --bg-main: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  
  --btn-bg: rgba(255, 255, 255, 0.65);
  --btn-border: rgba(15, 23, 42, 0.08);
  --btn-border-hover: rgba(99, 102, 241, 0.5);
  --btn-glow-shadow: rgba(99, 102, 241, 0.08);
  
  --container-bg: rgba(255, 255, 255, 0.7);
  --container-border: rgba(255, 255, 255, 0.8);
  --container-shadow: 
    0 4px 30px rgba(15, 23, 42, 0.04),
    0 20px 50px rgba(15, 23, 42, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  
  --badge-bg: rgba(217, 119, 6, 0.08);
  --badge-border: rgba(217, 119, 6, 0.2);
  --badge-color: #d97706;
  
  --logo-gradient: linear-gradient(135deg, #0f172a 60%, var(--text-secondary) 100%);
  --title-gradient: linear-gradient(135deg, #0f172a 30%, #6366f1 70%, #a855f7 100%);
  
  --bg-image-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.88));

  --glow-opacity-1: 0.08;
  --glow-opacity-2: 0.08;
  --glow-opacity-3: 0.04;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  /* Imagem hero de fundo com gradiente escuro/claro sobreposto para contraste premium */
  background-image: 
    var(--bg-image-overlay), 
    url('../img/catedral.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  padding: 1.5rem;
  transition: background-color 0.4s ease, color 0.4s ease, background-image 0.4s ease;
}

/* Efeito de Luzes Flutuantes no Fundo (Mesh Gradient Effect) */
.bg-glow {
  position: absolute;
  width: min(80vw, 600px);
  height: min(80vw, 600px);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: float-glow 25s infinite alternate ease-in-out;
  transition: opacity 0.4s ease;
}

.bg-glow-1 {
  background: var(--color-accent-1);
  top: -10%;
  left: -10%;
  opacity: var(--glow-opacity-1);
}

.bg-glow-2 {
  background: var(--color-accent-2);
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
  opacity: var(--glow-opacity-2);
}

.bg-glow-3 {
  background: var(--color-accent-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: var(--glow-opacity-3);
  animation-duration: 35s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 60px) scale(0.9);
  }
}

/* Card Principal (Glassmorphism) */
.container {
  max-width: 760px;
  width: 100%;
  background: var(--container-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--container-border);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--container-shadow);
  z-index: 1;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, max-width 0.4s ease;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alternador de Tema (Floating Toggle Button) */
.theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-primary);
  cursor: pointer;
  display: none; /* Escondido no celular */
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--container-shadow);
}

@media (min-width: 640px) {
  .theme-toggle {
    display: flex; /* Visível no desktop */
  }
}

.theme-toggle:hover {
  transform: translateY(-50%) scale(1.08);
  border-color: var(--btn-border-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px var(--btn-glow-shadow);
}

.theme-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.sun-icon {
  display: block;
}
.moon-icon {
  display: none;
}

body.light-theme .sun-icon {
  display: none;
}
body.light-theme .moon-icon {
  display: block;
}

/* Cabeçalho do Card (Status + Alternador) */
.card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

/* Badge "Em Construção" */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0; /* Removida margem inferior antiga */
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--badge-color);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-dot 1.8s infinite;
  transition: background-color 0.4s ease;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Conteúdo de Texto */
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
}

.title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  transition: color 0.4s ease;
}

/* Grid de Botões dos Links (Mobile First) */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 
    background-color 0.4s ease, 
    border-color 0.4s ease, 
    color 0.4s ease, 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Efeito Hover nos Botões */
.btn-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

body.light-theme .btn-link::before {
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0) 100%);
}

.btn-link:hover::before {
  transform: translateX(100%);
}

.btn-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--btn-border-hover);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 0 20px var(--btn-glow-shadow);
}

body.light-theme .btn-link:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 10px 20px rgba(15, 23, 42, 0.05),
    0 0 15px var(--btn-glow-shadow);
}

.btn-link:active {
  transform: translateY(0);
}

/* Conteúdo interno do botão */
.btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

body.light-theme .icon-wrapper {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.btn-link:hover .icon-wrapper {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.link-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.link-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.link-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  transition: color 0.4s ease;
}

/* Ícone de Seta (Direita) */
.arrow-icon {
  color: var(--text-secondary);
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-link:hover .arrow-icon {
  color: var(--text-primary);
  opacity: 1;
  transform: translateX(4px);
}

/* Rodapé */
.footer {
  margin-top: 3rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  z-index: 1;
  transition: color 0.4s ease;
}

body.light-theme .footer {
  color: rgba(71, 85, 105, 0.5);
}

/* Estilos Específicos para Diferentes Botões (Cores de Destaque no Hover) */
.btn-igrejaweb-com:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(99, 102, 241, 0.15);
}
.btn-igrejaweb-com:hover .icon-wrapper {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.btn-italtec:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(6, 182, 212, 0.15);
}
.btn-italtec:hover .icon-wrapper {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.btn-igrejaweb-net:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(168, 85, 247, 0.15);
}
.btn-igrejaweb-net:hover .icon-wrapper {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.btn-cred8:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.15);
}
.btn-cred8:hover .icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.btn-ibucmogi:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(239, 68, 68, 0.15);
}
.btn-ibucmogi:hover .icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-pjvn:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 20px rgba(236, 72, 153, 0.15);
}
.btn-pjvn:hover .icon-wrapper {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.25);
  color: #f472b6;
}

/* Responsividade Adicional */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  .container {
    padding: 2.25rem 1.5rem;
  }
  .title {
    font-size: 1.75rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .btn-link {
    padding: 0.95rem 1.1rem;
  }
}
