/**
 * RIFAS 2025 - Layout premium (inspirado em rifas.voneassessoria.com.br, mais robusto)
 * Aplica na home e listagem de campanhas.
 */

/* ---- Fundo azul com gradiente (estilo premium) ---- */
body {
  background: linear-gradient(180deg, #071b35 0%, #041327 55%, #020a14 100%) !important;
  color: rgba(255, 255, 255, 0.92);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(45, 124, 255, 0.35) 0%, rgba(45, 124, 255, 0) 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(0, 255, 209, 0.16) 0%, rgba(0, 255, 209, 0) 55%),
    radial-gradient(900px 600px at 40% 120%, rgba(128, 70, 255, 0.14) 0%, rgba(128, 70, 255, 0) 55%);
  opacity: 0.9;
  z-index: -1;
}

/* Container principal não deve “pintar” um bloco cinza */
.app-main {
  background: transparent !important;
}

/* Remover a “faixa preta” abaixo do header no tema premium */
.premium-topbar + .black-bar,
.black-bar.fuse {
  background: transparent !important;
  box-shadow: none !important;
  height: 0 !important;
}

/* ---- Topo/menu (inspirado na referência) ---- */
.premium-topbar .premium-topbar__container {
  background: rgba(2, 10, 20, 0.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.premium-topbar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.premium-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.premium-topbar__brand img.header-app-brand {
  max-height: 44px;
  width: auto;
}
.premium-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.premium-topbar__iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.premium-topbar__iconbtn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  color: #fff !important;
}
.premium-topbar__iconbtn i {
  font-size: 1.2rem;
}

/* ---- Seção Prêmios / Campanhas ---- */
.app-main .app-title {
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.5rem;
}
.app-main .app-title .h1,
.app-main .app-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.app-main .app-title .app-title-desc {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Grid de cards (2 colunas em telas médias+) */
.app-main .row.premium-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .app-main .row.premium-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .app-main .row.premium-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Card de campanha - visual premium */
.app-main .SorteioTpl_sorteioTpl__2s2Wu {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_imagemContainer__2-pl4 {
  height: 180px;
  width: 100%;
  margin-right: 0;
  min-height: 180px;
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_imagem__2GXxI {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_info__t1BZr {
  padding: 0.9rem 1.1rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.14);
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_title__3RLtu {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .SorteioTpl_descricao__1b7iL {
  font-size: 0.8rem;
  opacity: 0.85;
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .premium-cta {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.app-main .SorteioTpl_sorteioTpl__2s2Wu .premium-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Card em destaque (featured) - manter no mesmo padrão do grid */
.app-main .custom-highlight-card {
  border-radius: 18px;
}
.app-main .custom-highlight-card .SorteioTpl_imagemContainer__2-pl4 {
  min-height: 180px;
}
.app-main .custom-highlight-card .SorteioTpl_info__t1BZr {
  padding: 0.9rem 1.1rem 1.05rem;
}
.app-main .custom-highlight-card .SorteioTpl_title__3RLtu {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---- Dúvidas - bloco premium ---- */
.app-main .app-helpers .bg-white.bg-opacity-25 {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  padding: 1.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}
.app-main .app-helpers .bg-white.bg-opacity-25:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.15);
}
.app-main .app-helpers .icone.font-lg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
}
.app-main .app-helpers .txt h3 {
  font-weight: 700;
  font-size: 1.1rem;
}
.app-main .app-helpers .txt p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---- Perguntas frequentes - premium ---- */
.app-main .app-perguntas .app-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
}
.app-main .app-perguntas .pergunta-item {
  border-radius: 14px;
  padding: 1rem 1.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}
.app-main .app-perguntas .pergunta-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.app-main .app-perguntas .pergunta-item--pergunta {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.app-main .app-perguntas .pergunta-item--resp p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* ---- Ganhadores - cards ---- */
.app-main .app-ganhadores .app-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
}
.app-main .ganhadorItem_ganhadorContainer__1Sbxm {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}
.app-main .ganhadorItem_ganhadorContainer__1Sbxm:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

/* Container principal - mais ar e consistência */
.app-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.app-main .container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
