/* ================================================
   HAUS Tecnologia — LP Sorteio COMMUNITECH 2026
   Paleta: Preto #000 + Laranja #FF6600
   ================================================ */

:root {
  --haus-black:       #000000;
  --haus-orange:      #FF6600;
  --haus-orange-dark: #e05a00;
  --haus-gray-light:  #f8f9fa;
  --haus-gray-text:   #555555;
}

/* ---- GERAL ---- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  scroll-behavior: smooth;
}

/* ---- HEADER ---- */
.site-header {
  background-color: var(--haus-black);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.site-header .logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
.site-header .instagram-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.site-header .instagram-link:hover {
  color: var(--haus-orange);
}
.site-header .instagram-link svg {
  width: 20px;
  height: 20px;
}

/* ---- HERO ---- */
.hero-section {
  background: linear-gradient(135deg, #000000 0%, #111111 55%, #FF6600 100%);
  color: #ffffff;
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: #ffffff;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-section .hero-badge {
  display: inline-block;
  background-color: var(--haus-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero-section h1 span {
  color: var(--haus-orange);
}
.hero-section .hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.hero-section .hero-local {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.hero-section .hero-local svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---- BOTÕES HAUS ---- */
.btn-haus {
  background-color: var(--haus-orange);
  color: #fff !important;
  border: none;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.btn-haus:hover {
  background-color: var(--haus-orange-dark);
  transform: translateY(-1px);
}
.btn-haus-outline {
  background: transparent;
  color: var(--haus-orange) !important;
  border: 2px solid var(--haus-orange);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-haus-outline:hover {
  background-color: var(--haus-orange);
  color: #fff !important;
}

/* ---- SEÇÃO PRÊMIOS ---- */
.prizes-section {
  padding: 64px 0 56px;
  background: #ffffff;
}
.prizes-section .section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--haus-black);
  margin-bottom: 6px;
}
.prizes-section .section-title span {
  color: var(--haus-orange);
}
.prizes-section .section-sub {
  color: var(--haus-gray-text);
  margin-bottom: 40px;
  font-size: 0.95rem;
}
.prize-card {
  background: #fff;
  border: 2px solid #eeeeee;
  border-radius: 14px;
  padding: 28px 16px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.prize-card:hover {
  border-color: var(--haus-orange);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.18);
  transform: translateY(-4px);
}
.prize-card .prize-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--haus-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.prize-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}
.prize-card .prize-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--haus-black);
  margin-bottom: 0;
}
.prizes-exclusive {
  margin-top: 32px;
  padding: 14px 24px;
  background: #fff8f4;
  border: 1px solid #ffd4b3;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #c04d00;
  font-weight: 600;
}

/* ---- SEÇÃO FORMULÁRIO ---- */
.form-section {
  background: var(--haus-gray-light);
  padding: 64px 0 72px;
}
.form-section .section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--haus-black);
  margin-bottom: 6px;
}
.form-section .section-sub {
  color: var(--haus-gray-text);
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.form-card {
  background: #fff;
  border-radius: 14px;
  border-top: 5px solid var(--haus-orange);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 36px 40px 32px;
}
.form-card .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 5px;
}
.form-card .form-control {
  border-radius: 6px;
  border: 1.5px solid #ddd;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-card .form-control:focus {
  border-color: var(--haus-orange);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
}
.form-card .form-control.is-invalid {
  border-color: #dc3545;
}

/* Alerta Instagram obrigatório */
.instagram-alert {
  background: linear-gradient(135deg, #fff3eb, #ffe4cc);
  border: 1.5px solid var(--haus-orange);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #7a3000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Botão Instagram */
.btn-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-instagram:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff;
}

/* Nota de rodapé do Instagram */
.instagram-note {
  font-size: 0.78rem;
  color: #777;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--haus-orange);
  background: #fff8f4;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* Checkbox custom */
.form-check-input:checked {
  background-color: var(--haus-orange);
  border-color: var(--haus-orange);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(255,102,0,0.2);
  border-color: var(--haus-orange);
}
.form-check-label {
  font-size: 0.875rem;
  color: #444;
}
.link-termos {
  color: var(--haus-orange);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Separador de seção do formulário */
.form-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  background-color: var(--haus-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.btn-submit:hover {
  background-color: var(--haus-orange-dark);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
}

/* ---- TELA DE SUCESSO ---- */
.success-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 60%, #FF6600 100%);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.success-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  padding: 44px 40px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.success-card .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.success-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--haus-black);
  margin-bottom: 6px;
}
.success-card .success-sub {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.raffle-number-box {
  background: linear-gradient(135deg, #FF6600, #e05a00);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 24px;
}
.raffle-number-box .raffle-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.raffle-number-box .raffle-number {
  font-size: 5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.success-info {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--haus-orange);
  text-align: left;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--haus-black);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  text-align: center;
}
.site-footer .footer-logo {
  max-height: 44px;
  opacity: 0.85;
  margin-bottom: 12px;
}
.site-footer a {
  color: var(--haus-orange);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* ---- ADMIN ---- */
.admin-navbar {
  background: var(--haus-black);
  border-bottom: 3px solid var(--haus-orange);
}
.admin-navbar .navbar-brand {
  color: var(--haus-orange) !important;
  font-weight: 800;
  font-size: 1.1rem;
}
.admin-navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.875rem;
  font-weight: 600;
}
.admin-navbar .nav-link:hover,
.admin-navbar .nav-link.active {
  color: var(--haus-orange) !important;
}
.admin-stat-card {
  border-radius: 10px;
  border-left: 5px solid var(--haus-orange);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.admin-stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--haus-orange);
  line-height: 1;
}
.admin-stat-card .stat-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.table th {
  background: var(--haus-black);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.table td {
  font-size: 0.875rem;
  vertical-align: middle;
}
.badge-raffle {
  background-color: var(--haus-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 20px;
}

/* ---- ADMIN LOGIN ---- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #000 60%, #FF6600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}
.login-card .login-logo {
  max-height: 60px;
  margin-bottom: 6px;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 767px) {
  .form-card {
    padding: 24px 18px 20px;
  }
  .hero-section {
    padding: 52px 0 44px;
  }
  .success-card {
    padding: 32px 20px;
  }
  .raffle-number-box .raffle-number {
    font-size: 3.8rem;
  }
  .success-actions {
    flex-direction: column;
  }
  .success-actions a, .success-actions button {
    width: 100%;
  }
}
