/* style/promotions.css */

/* Variáveis de cor */
:root {
  --betk7-red-main: #E53935;
  --betk7-red-accent: #FF5A4F;
  --betk7-white: #FFFFFF;
  --betk7-gray-light: #F5F7FA;
  --betk7-text-main: #333333;
  --betk7-border-color: #E0E0E0;
  --header-offset: 70px; /* Valor de fallback, ajustado pelo shared.css */
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--betk7-text-main);
  background-color: var(--betk7-gray-light); /* Cor de fundo principal */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 80px 20px;
  padding-top: 10px; /* Pequeno top padding, body já tem --header-offset */
  overflow: hidden;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  color: var(--betk7-white); /* Texto claro para contraste com imagem escura */
  background: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente para texto */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--betk7-white);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: var(--betk7-white);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--betk7-red-accent) 0%, var(--betk7-red-main) 100%);
  color: var(--betk7-white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  background: linear-gradient(180deg, var(--betk7-red-main) 0%, var(--betk7-red-accent) 100%);
}

.page-promotions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__security-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--betk7-white); /* Fundo claro para seções de texto */
  color: var(--betk7-text-main);
}

.page-promotions__dark-bg {
  background-color: var(--betk7-red-main);
  color: var(--betk7-white);
  padding: 60px 0;
  text-align: center;
}

.page-promotions__light-bg {
  background-color: var(--betk7-white);
  color: var(--betk7-text-main);
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  margin-bottom: 30px;
  font-weight: 600;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--betk7-white);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: var(--betk7-white); /* Fundo claro para os cards */
  color: var(--betk7-text-main);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid var(--betk7-border-color);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--betk7-red-main);
}

.page-promotions__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--betk7-red-accent) 0%, var(--betk7-red-main) 100%);
  color: var(--betk7-white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, var(--betk7-red-main) 0%, var(--betk7-red-accent) 100%);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions__list-item {
  background-color: var(--betk7-gray-light);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  border-left: 5px solid var(--betk7-red-main);
}

.page-promotions__list-item strong {
  color: var(--betk7-red-main);
}

.page-promotions__list-item a {
  color: var(--betk7-red-main);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__list-item a:hover {
  text-decoration: underline;
}

.page-promotions__game-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__game-card {
  background-color: var(--betk7-white);
  color: var(--betk7-text-main);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid var(--betk7-border-color);
}

.page-promotions__game-card:hover {
  transform: translateY(-5px);
}

.page-promotions__game-card .page-promotions__card-image {
  height: 180px;
}

.page-promotions__security-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--betk7-white);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }

  .page-promotions__hero-content {
    padding: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-promotions__cta-button,
  .page-promotions__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__introduction-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__security-section,
  .page-promotions__conclusion-section,
  .page-promotions__dark-bg {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-promotions__text-block {
    font-size: 1em;
  }

  .page-promotions__promo-grid,
  .page-promotions__game-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-card,
  .page-promotions__game-card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__list-item {
    font-size: 1em;
    padding: 15px;
  }

  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-promotions__faq-answer {
    font-size: 0.95em;
    padding: 15px;
    padding-top: 0;
  }

  /* Imagens, vídeos e containers em mobile */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-section,
  .page-promotions__introduction-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__games-promo-section,
  .page-promotions__security-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__game-card,
  .page-promotions__list-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-promotions__hero-content, .page-promotions__promo-grid, .page-promotions__game-cards-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body já tem --header-offset */
  }
}

/* Cores para garantir contraste em diferentes fundos */
.page-promotions__dark-bg {
  color: var(--betk7-white); /* Texto claro para fundo escuro */
}

.page-promotions__light-bg {
  color: var(--betk7-text-main); /* Texto escuro para fundo claro */
}

.page-promotions__promo-card,
.page-promotions__game-card {
  background-color: var(--betk7-white); /* Fundo branco para cards */
  color: var(--betk7-text-main);
}

.page-promotions__list-item {
  background-color: var(--betk7-gray-light);
  color: var(--betk7-text-main);
}

/* Estilo para links dentro do texto */
.page-promotions p a, .page-promotions li a {
  color: var(--betk7-red-main);
  text-decoration: underline;
}

.page-promotions p a:hover, .page-promotions li a:hover {
  color: var(--betk7-red-accent);
}