/* RESET BÁSICO */
:root {
  --bg: #07122b;
  --panel: #0d1a3c;
  --panel-2: #15254d;
  --card: #101b3a;
  --primary: #f6c400; /* cor única para botões, ícones e footer */
  --primary-2: #1b4db1;
  --text: #f8fafc;
  --muted: #cbd5e1;
}

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

.color-secondary{
  background: var(--primary);
}

.--color-secondary{
  color: var(--primary);
}

.sorteio-date {
  color: var(--primary);
  font-weight: 800;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}

/* HEADER & FOOTER */
.header, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: calc(100%);
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  font-size: 0.75rem;
  z-index: 40;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px 8px 0 0;
}

.footer a {
  flex: 1;
  color: #0a0f1f;
  font-weight: 700;
}

/* BOTÕES */
.btn {
  display: inline-block;
  padding: 1rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
}

.btn-yellow {
  background-color: var(--primary);
  color: #0a0f1f;
}

.btn-black {
  background-color: var(--primary);
  color: #0a0f1f;
  margin-top: 0.5rem;
}

.btn-ghost {
  background: none;
  color: white;
  width: 100%;
}

.btn-orange{
  background-color: #ff6200;
  color: #fff;
}
.btn-red{
  background-color: #7f1d1d;
  color: #fff;
}

/* BANNER */
.banner {
  margin: 1rem;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* MENU DE ÍCONES */
.menu {
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
  text-align: center;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  gap: 0.15rem;
  text-align: center;
  line-height: 1.2;
}

.menu-item .material-symbols-outlined {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: #0a0f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.menu-item .menu-label {
  display: block;
  line-height: 1.25;
}

/* DESTAQUES */
.destaques {
  padding: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 10px;
}

.card {
  background-color: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
}

.destaque-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-img-wrapper {
  position: relative;
}

.destaque-pill {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 0.75rem;
  font-size: 0.85rem;
}

.progress {
  position: relative;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f6c400, #f3a600);
  border-radius: inherit;
}

.progress-label {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: #f6c400;
}

.premios-extras {
  margin-top: 0.75rem;
  background: #0c1c3e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  border-radius: 0.65rem;
  overflow: hidden;
  font-size: 0.7rem;
  color: #0f172a;
  /* padding: 0.2rem; */
}

.premios-extras__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  background: #b6b6b6;
  font-weight: 700;
}

.premios-extras__title .material-symbols-outlined {
  font-size: 1.1rem;
}

.premios-extras__list {
  display: flex;
  flex-direction: column;
}

.premios-extras__row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f4f4f4;
}

.premios-extras__codigo {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  text-align: center;
}

.premios-extras__premio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #0f172a;
}

.premios-extras__status {
  justify-self: end;
  background: #c7c7c7;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  color: #0f172a;
}

.premios-extras__row.has-winner {
  background: #0d75c9;
    font-weight: 700;
  
}

.premios-extras__row.has-winner .premios-extras__codigo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.premios-extras__row.has-winner .premios-extras__premio {
  color: #ffffff;
}

.premios-extras__status.is-winner {
  background: #0d75c9;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.concursos {
  padding: 0.5rem 0.85rem 1rem;
}

.concursos-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 10px;
}

.concurso-card {
  background-color: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 0.75rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid #163069;
}

.concurso-hero {
  overflow: hidden;
  border-radius: 0.6rem;
}

.concurso-hero img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.concurso-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  /* text-transform: uppercase; */
}

.pill.status {
  background-color: #1e293b;
  color: var(--primary);
}

.pill.premio {
  background-color: #facc15;
  color: #0f172a;
}

.concurso-titulo {
  font-weight: 700;
  font-size: 1rem;
}

.text-xs {
  font-size: 0.85rem;
  color: var(--muted);
}

.concurso-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.numeros {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-esgotado {
  background-color: #7f1d1d;
  color: #fecdd3;
}

.status-aguardando {
  background-color: #1d4ed8;
  color: #dbeafe;
}

.pill.esgotado {
  background-color: #7f1d1d;
  color: #fecdd3;
}

.btn-disabled {
  opacity: 0.6;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

/* MODAL PARTICIPAÇÃO */
.modal {
  position: fixed;
  left: 50%;
  bottom: 4rem;
  width: calc(100% - 2rem);
  max-width: 300px;
  background-color: var(--panel-2);
  padding: 0.75rem 1rem;
  color: var(--text);
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, 100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.about-paulo {
  padding: 1rem 1rem 7rem;
}

.about-card {
  /* background: #2c2f36; */
  border-radius: 0.9rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.about-photo-wrap {
  width: 100%;
  max-width: 520px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0f172a;
}

.about-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-photo-bar {
  height: 10px;
  background: var(--primary);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: center;
}

.about-content h3 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.about-content p {
  color: var(--muted);
  line-height: 1.5;
}

.about-content strong {
  color: var(--primary);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(246, 196, 0, 0.15);
  border: 1px solid rgba(246, 196, 0, 0.35);
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(246, 196, 0, 0.28);
}

.social-icon i {
  font-size: 1.2rem;
}

/* RESPONSIVO */
@media (max-width: 600px) {
  .page {
    padding: 0 0.2rem 6rem;
  }

  .header, .banner, .destaques {
    padding: 0.75rem 0.5rem;
  }

  .banner {
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .card img {
    height: 150px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer a {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

.about-content {
    padding: 1rem;
  }
}

@media (min-width: 900px) {
  .about-card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
  }

  .about-content {
    text-align: left;
    padding: 0;
    gap: 1.1rem;
  }

  .about-content h3 {
    font-size: 2.4rem;
  }

  .about-content p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .social-links {
    justify-content: flex-start;
  }
}
