/* ═══════════════════════════════════════════════════════════════
 * home_sp.css — Template 3 (Steak Premiações)
 * Réplica fiel do design steakpremiacoes-com/index.html.
 * Paleta: body #251729, header var(--tema-header-color, #6B1A8D), card #482258, footer #0f172a.
 * ═══════════════════════════════════════════════════════════════ */

/* ═══ BASE ═══ */
html, body.sp-body { background: #1f0a2b !important; color: #e2e8f0; }

body.sp-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  padding-bottom: 20px;
  background: #251729 !important;
}
body.sp-body a { text-decoration: none; color: inherit; }
body.sp-body img { vertical-align: middle; }

/* Container 600px (mobile-first, Bootstrap override) */
.sp-body .container-600 { max-width: 600px; }
@media (min-width: 600px) { .sp-body .container-600 { max-width: 600px; } }

.sp-body .font-xsss { font-size: .7rem; }
.sp-body .font-xs { font-size: .8rem; }
.sp-body .font-mdd { font-size: 1rem; }
.sp-body .font-lg { font-size: 1.25rem; }
.sp-body .font-lgg { font-size: 1.5rem; }

/* Admin bar (discreta no template 3) */
.sp-admin-bar {
  background: #2a1138;
  color: var(--tema-participate-color, #fda92d);
  text-align: center; padding: 4px 12px; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sp-admin-bar a {
  color: var(--tema-participate-color, #fda92d) !important;
  font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.85;
}
.sp-admin-bar a:hover { opacity: 1; }

/* ═══ HEADER ═══ */
.Header_appHeader__sp {
  position: sticky;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
}
.Header_appHeaderContainer__sp {
  background-color: var(--tema-header-color, #6B1A8D) !important;
  color: #cfcfcf;
  font-size: .9em;
}
.Header_appHeaderWrap__sp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  width: 100%;
}
.Header_appHeaderWrap__sp > a.flex-grow-1 {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.Header_appHeaderWrap__sp .btn-link {
  color: #fff !important;
  padding: .1rem 0;
  text-decoration: none;
  background: transparent;
  border: none;
  opacity: 0.85;
}
.Header_appHeaderWrap__sp .btn-link:hover { opacity: 1; }
.Header_appHeaderWrap__sp .btn-link.font-lg { font-size: 1.6em; }
.Header_appHeaderWrap__sp .btn-link.font-lgg { font-size: 2em; }
.Header_appHeaderBrand__sp { max-height: 80px; max-width: 240px; object-fit: contain; }

/* Black bar (linha roxa divisória do Template 3) */
.sp-body .sp-black-bar {
  background: var(--tema-header-color, #6B1A8D) !important;
  height: 6px !important;
  width: 100%;
  box-shadow: none !important;
}

/* ═══ MENU MOBILE MODAL ═══ */
.modal.modal-fluid .modal-dialog.modal-fullscreen {
  margin: 0;
  max-width: 100%;
  width: 100%;
  height: 100vh;
}
.bg-cor-primaria { background-color: #000 !important; color: #fff; }
.bg-cor-primaria .app-header {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bg-cor-primaria .app-brand { max-height: 55px; max-width: 185px; }
.bg-cor-primaria .modal-body { padding-top: 24px; }
.bg-cor-primaria .menu-mobile--button {
  background: transparent; border: none; color: #fff !important;
}
.nav-vertical.nav-submenu ul { list-style: none; padding: 0; margin: 0; }
.nav-vertical.nav-submenu li { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-vertical.nav-submenu li a {
  color: #fff !important;
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 500;
}
.nav-vertical.nav-submenu li a .icone { font-size: 18px; opacity: 0.8; }
.nav-vertical.nav-submenu li a:hover { opacity: 0.85; }

/* Botão Entrar dentro do menu */
.bg-cor-primaria .btn-primary {
  background: #1673ff !important;
  border-color: #1673ff !important;
  color: #fff !important;
  padding: 12px 20px !important;
  font-weight: 600;
  margin-top: 20px;
}

/* ═══ APP MAIN (card sobreposto ao header) ═══ */
.sp-body .app-main {
  background: #251729 !important;
  border-radius: 32px;
  padding: 18px 14px 22px;
  margin-top: -20px;
  position: relative;
  z-index: 1000;
}

.sp-body .app-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 14px 4px;
}
.sp-body .app-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9 !important;
  margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.sp-body .app-title-desc {
  font-size: 13px;
  color: #94a3b8 !important;
}

/* ═══ CARDS ═══ */
.SorteioTpl_sorteioTpl__sp {
  border-radius: 14px;
  background: #3d1d4d;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  position: relative;
  text-decoration: none;
  color: inherit;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sp-body .col-12.mb-2 { margin-bottom: 4px !important; }
.SorteioTpl_sorteioTpl__sp:hover {
  transform: translateY(-2px);
  background: #46235a;
  color: inherit;
}

/* Card destaque (grande) */
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp {
  flex-direction: column;
  padding: 0;
  align-items: stretch;
  gap: 0;
  position: relative;
}
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_imagemContainer__sp {
  width: 100%;
  height: 290px;
  position: relative;
  overflow: hidden;
}
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_imagemContainer__sp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Overlay gradient sobre imagem do destaque */
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_imagemContainer__sp::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.95), rgba(0,0,0,0.2));
  pointer-events: none;
}
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_info__sp {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  z-index: 2;
  padding: 0;
}
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_title__sp {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
}
.SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_descricao__sp {
  color: #cbd5e1 !important;
  font-size: 12px;
  margin: 0;
}

/* Card normal (imagem 72x72) */
.SorteioTpl_sorteioTpl__sp:not(.SorteioTpl_destaque__sp) .SorteioTpl_imagemContainer__sp {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.SorteioTpl_sorteioTpl__sp:not(.SorteioTpl_destaque__sp) .SorteioTpl_imagemContainer__sp img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.SorteioTpl_sorteioTpl__sp:not(.SorteioTpl_destaque__sp) .SorteioTpl_info__sp {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
}
.SorteioTpl_title__sp {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin: 0 0 6px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.SorteioTpl_descricao__sp {
  color: #cbd5e1 !important;
  font-size: 12px;
  margin: 0 0 4px;
  max-width: 96%;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ BADGES ═══ */
.SorteioTpl_sorteioTpl__sp .badge {
  font-size: 11px;
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 2px;
  font-weight: 600;
  display: inline-block;
}
.SorteioTpl_sorteioTpl__sp .badge.bg-success { background-color: #198754 !important; color: #fff; }
.SorteioTpl_sorteioTpl__sp .badge.bg-dark { background-color: #1a1022 !important; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.06); }
.SorteioTpl_sorteioTpl__sp .badge.bg-opacity-75 { --bs-bg-opacity: 0.9; }

/* Blink animation */
.blink { animation: sp-blink 1.2s linear infinite; }
@keyframes sp-blink { 50% { opacity: .5; } }

/* Empty state */
.sp-empty {
  text-align: center;
  padding: 40px 16px;
  color: #94a3b8;
  font-size: 14px;
}

/* ═══ FOOTER ═══ */
.footer-modern {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 30px;
}
.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-social {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  margin: 5px;
  transition: .3s;
  color: #fff !important;
  text-decoration: none;
}
.footer-social a:hover {
  transform: translateY(-4px);
  background: #f59e0b;
  color: #000 !important;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2px 4px;
  margin: 10px 0;
}
.footer-links a {
  margin: 6px 10px;
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: #f59e0b !important; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  color: #bdbdbd;
  text-align: center;
}
.footer-dev {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.footer-dev a {
  color: #f59e0b !important;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: .2s;
}
.footer-dev a::after {
  content: '';
  position: absolute;
  width: 0%; height: 2px;
  background: #f59e0b;
  left: 0; bottom: -2px;
  transition: .25s;
}
.footer-dev a:hover::after { width: 100%; }
.mais18 {
  background-image: url('../images/18anos2.png');
  background-size: 143px 25px;
  width: 143px; height: 25px;
  margin: 12px auto;
}

/* WhatsApp Float */
.sp-wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1040;
  text-decoration: none;
}
.sp-wa-float:hover { transform: scale(1.08); }

/* ═══ MODAIS MEGAPIX ═══ */
.megapix-modal { max-width: 520px; }
.modal-content.megapix-content {
  background: linear-gradient(145deg, #212b36, rgba(0,0,0,0.15)) !important;
  color: #FFFFFF !important;
  border-radius: 18px;
  border: none;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}
.megapix-header {
  padding: 18px 24px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.megapix-header .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}
.megapix-header .btn-close { filter: invert(1); opacity: 0.8; }
.megapix-body { padding: 24px; }
.megapix-subtitle {
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.7;
  margin-bottom: 16px;
}
.megapix-input, .modal-content.megapix-content input.form-control {
  height: 48px;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
}
.megapix-input::placeholder { color: rgba(255,255,255,0.4); }
.megapix-input:focus {
  border-color: var(--tema-participate-color, #fda92d) !important;
  box-shadow: 0 0 0 0.15rem rgba(253,169,45,0.15);
  background: rgba(255,255,255,0.05) !important;
}
.megapix-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #6f1ab6, #a855f7);
  color: #ffffff !important;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(156, 39, 176, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all .2s ease;
  animation: sp-pulseBtn 2s infinite;
}
.megapix-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 40%);
  border-radius: inherit; pointer-events: none; z-index: 1;
}
.megapix-btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: sp-shineMove 2.8s infinite;
  pointer-events: none; z-index: 1;
}
.megapix-btn > * { position: relative; z-index: 2; }
.megapix-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  filter: brightness(1.05); color: #fff !important;
}
.megapix-btn:hover::after { animation-duration: 1.2s; }
.megapix-btn:active { transform: scale(0.96); }
.megapix-btn:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
@keyframes sp-pulseBtn {
  0%   { box-shadow: 0 6px 15px rgba(156, 39, 176, 0.35), 0 0 0 rgba(255, 193, 7, 0.4); }
  50%  { box-shadow: 0 6px 18px rgba(156, 39, 176, 0.5),  0 0 12px rgba(255, 193, 7, 0.6); }
  100% { box-shadow: 0 6px 15px rgba(156, 39, 176, 0.35), 0 0 0 rgba(255, 193, 7, 0.4); }
}
@keyframes sp-shineMove {
  0%   { left: -80%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .megapix-btn { animation: none !important; }
  .megapix-btn::after { animation: none !important; display: none; }
}
.megapix-safe {
  margin-top: 16px;
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0.6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.modal-content.megapix-content .alert {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 12px;
}
.modal-content.megapix-content .alert a { color: var(--tema-participate-color, #fda92d); text-decoration: underline; }

.sp-checkout-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #fff;
}
.sp-checkout-info strong { color: var(--tema-participate-color, #fda92d); }

.modal-backdrop.show { opacity: 0.65; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 400px) {
  .SorteioTpl_sorteioTpl__sp.SorteioTpl_destaque__sp .SorteioTpl_imagemContainer__sp { height: 230px; }
  .sp-body .app-title h1 { font-size: 19px; }
}
