/* =========================================================
   Holler – Estilos Globais (style.css)
   ========================================================= */

/* ---------- Variáveis de cor ---------- */
:root {
  --holler-red: #ba1e1e;      /* cor principal */
  --holler-yellow: #ffc933;   /* cor de destaque */
  --holler-dark: #000000;     /* fundo quase preto */
  --holler-gray: #2b2b2b;     /* cinza escuro */
  --text-light: #fefefe;      /* textos claros */
  --text-muted: #c9c9c9;      /* textos secundários */
  --radius: 8px;              /* border-radius */
  --shadow: 0 4px 12px rgba(0,0,0,.35);
  --transition: .25s ease-in-out;
}

/* ========================================================= */
/* 1) Garante reset/global e 100 % de largura/altura no body */
/* ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  background-color: var(--holler-dark);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* evita scroll horizontal */
}

/* --------------------------------------------------------- */
/* 2) Fundo específico para a página “index.ejs” (sem faixas) */
/* --------------------------------------------------------- */
body.index-page {
  background:
    /* overlay leve para melhorar legibilidade do texto */
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    /* fundo principal – ajuste “bg-index.jpg” para o nome correto */
    url("/images/logo2.PNG") center center/cover scroll;
  background-repeat: no-repeat;
}

body.login-page {
  background:
    /* overlay leve para melhorar legibilidade do texto */
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    /* fundo principal – ajuste “bg-index.jpg” para o nome correto */
    url("/images/backgroundindex.PNG") center center/cover scroll;
  background-repeat: no-repeat
}

body.admin-bg {
  background:
    /* overlay leve para melhorar legibilidade do texto */
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    /* fundo principal – ajuste “bg-index.jpg” para o nome correto */
    url("/images/fundo.png") center center/cover scroll;
  background-repeat: no-repeat
}

body.root-admin {
  background:
    /* overlay leve para melhorar legibilidade do texto */
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    /* fundo principal – ajuste “bg-index.jpg” para o nome correto */
    url("/images/fundo.png") center center/cover scroll;
  background-repeat: no-repeat
}

/* --------------------------------------------------------- */
/* 3) Container e demais estilos gerais (válidos para todas as páginas) */
/* --------------------------------------------------------- */
.container {
  width: 90%;
  max-width: 640px;
  margin: 40px auto;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo (quando houver) */
.logo {
  max-width: 260px;
  margin: 0 auto 24px;
  display: block;
}

/* Texto padrão */
p {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

/* Efeito “pulse” (caso use em alguma página) */
.pulse {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--holler-yellow);
  text-shadow: 1px 1px 2px rgba(0,0,0,.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}

/* Estilização de botões */
button {
  cursor: pointer;
  border: none;
  outline: none;
  background: var(--holler-red);
  color: var(--text-light);
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}
button:hover {
  background: rgba(186,30,30, .92); /* leve escurecimento de hover */
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Imagens dentro de carrossel ou corpo */
img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------- */
/* 4) Carrossel (se houver em qualquer página) */
/* --------------------------------------------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 320px;
  margin: 24px auto;
}
.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.carousel img.active {
  opacity: 1;
}
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  padding: .55rem .8rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition);
}
.prev { left: 12px; }
.next { right: 12px; }
.prev:hover, .next:hover {
  background: rgba(0,0,0,.8);
}

/* --------------------------------------------------------- */
/* 5) Links (cores e hover) */
/* --------------------------------------------------------- */
a {
  color: var(--holler-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
a:hover {
  filter: brightness(1.15);
}

/* --------------------------------------------------------- */
/* 6) Rodapé de autor (caso use “SagaFuture”) */
/* --------------------------------------------------------- */
.saga {
  font-size: .95rem;
  margin-top: 32px;
  color: var(--text-muted);
}

/* Botão principal de SMS */
.sms-main-toggle {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin: 20px 0;
  background: linear-gradient(135deg, #e67e22, #d35400);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sms-main-toggle:hover {
  background: linear-gradient(135deg, #d35400, #c0392b);
  transform: translateY(-2px);
}

/* Grade de opções SMS */
.sms-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.sms-option-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.sms-option-card:hover {
  border-color: #e67e22;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.sms-option-card.active {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.2);
}

.sms-option-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.sms-option-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.sms-option-desc {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* Formulário SMS oculto inicialmente */
.sms-form-container {
  display: none;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 25px;
}

.sms-form-container.active {
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* Botão de voltar */
.back-btn {
  background: #95a5a6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}

.back-btn:hover {
  background: #7f8c8d;
}

@media (max-width: 768px) {
  .sms-options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sms-option-card {
    padding: 15px;
  }
}


/* --------------------------------------------------------- */
/* 7) Responsivo (ajustes para telas pequenas) */
/* --------------------------------------------------------- */
@media (max-width: 500px) {
  .container {
    padding: 22px;
  }
  .carousel {
    height: 240px;
  }
  p {
    font-size: 1rem;
  }
  .pulse {
    font-size: 1.2rem;
  }
}
