/* Container principal */
.pdc-widget-container {
  max-width: 1000px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0;
  background: transparent;
}

.light-mode .pdc-widget-container {
  background: transparent;
}

.pdc-widget-item {
  background-color: #17191d;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.light-mode .pdc-widget-item {
  background-color: #fff !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.pdc-widget-container .content p {
  margin: 0 0 10px;
}

/* Container principal en 2 colonnes */
.pdc-widget-main {
  display: flex;
  width: 100%;
  gap: 30px;
  min-height: 250px;
}

.has-sidebar .pdc-widget-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Colonne gauche : Logo, note et moyens de paiement */
.pdc-widget-column-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.pdc-widget-payment-methods-container {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
}

.light-mode .pdc-widget-payment-methods-container {
  background-color: transparent;
}


/* Logo du casino */
.pdc-widget-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0b400;
  border-radius: 10px;
  padding: 8px;
}

.pdc-widget-logo-container img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
}

/* Moyens de paiement */
.pdc-widget-payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.pdc-widget-payment-methods.is-centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.light-mode .pdc-widget-container .pdc-widget-payment-methods {
  background-color: transparent; /* Pas de fond en light mode */
}

.pdc-widget-payment-logo {
  width: 45px;
  height: 30px;
  border-radius: 4px;
  background-color: #ffffff; 
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: fill;
}

.light-mode .pdc-widget-payment-logo {
  border: 1px solid #e0e0e0;
  background-color: transparent;
}

/* Section note/rating */
.pdc-widget-rating-section {
  width: 100%;
  text-align: center;
}

.pdc-widget-rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #46484b;
  color: #fac011;
  padding: 12px 40px;
  border-radius: 20px;
  font-weight: bold;
  width: 100%;
}

.pdc-widget-rating-label {
  font-size: 14px;
  font-weight: 500;
  color: #fac011 !important;
}

.light-mode .pdc-widget-rating-badge {
  background-color: #efeff2;
}

.pdc-widget-rating-value {
  font-size: 14px !important;
  font-weight: 500;
  color: #fac011 !important;
}

.pdc-widget-rating-star svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
  color: #ffd522 !important;
  fill: #ffd522 !important;
  stroke: #ffd522 !important;
}

/* Texte sous la note */
.pdc-widget-note-label {
  font-size: 14px !important;
  text-align: center;
  margin: 5px 0 20px 0 !important;
  line-height: 1.3;
  width: 253px;
  font-weight: 500;
  width: 100%;
}
body.dark-mode .pdc-widget-container .pdc-widget-note-label a,
body.light-mode .pdc-widget-container .pdc-widget-note-label a {
  color: #707070 !important;
}

body.light-mode .pdc-widget-container .pdc-widget-note-label a span,
body.dark-mode .pdc-widget-container .pdc-widget-note-label a span {
  color: #707070 !important;
}

body.dark-mode .pdc-widget-container .pdc-widget-subtitle a,
body.light-mode .pdc-widget-container .pdc-widget-subtitle a {
  color: #707070 !important;
}


/* Colonne droite : Informations et avantages */
.pdc-widget-column-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.pdc-widget-column-3 {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 20px;
  flex: 1;
}

.pdc-widget-rating-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.pdc-widget-rank {
  font-size: 16px !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: 0.5px;
  font-weight: normal;
}

body.light-mode .pdc-widget-container .pdc-widget-rank {
  color: #707070 !important;
}
body.dark-mode .pdc-widget-container .pdc-widget-rank {
  color: #707070 !important;
}
.pdc-widget-title {
  font-size: 26px !important;
  font-weight: bold;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.pdc-widget-subtitle {
  font-size: 14px !important;
  margin: 0;
  line-height: 1.4;
  width: 200px;
  margin-top: 2px !important;
  margin-bottom: 20px !important;
  font-weight: 500;
}
.pdc-widget-header.no-subtitle {
  margin-bottom: 12px;
}

.pdc-widget-payment-methods-container.no-subtitle {
  margin-top: 4px;
}

body.light-mode .pdc-widget-container .pdc-widget-subtitle a {
  color: #707070 !important;
}
/* Liste des avantages */
.pdc-widget-advantages-list {
  list-style: none;
  padding-left: 0px !important;
}

.wrapper-logo-infos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.pdc-widget-advantage-item {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 !important;
  margin-bottom: 10px !important;
}

.pdc-widget-separator {
  width: 1px !important;
  min-width: 1px !important;
  min-height: 100% !important;
  background: linear-gradient(to bottom, #17191d, #ffffff, #17191d);
}

.pdc-widget-separator-without-sidebar {
  width: 1px !important;
  min-width: 1px !important;
  min-height: 100% !important;
  background: linear-gradient(to bottom, #17191d, #ffffff, #17191d);
}

.light-mode .pdc-widget-separator {
  background: linear-gradient(to bottom, #fff, #e0e0e0, #fff);
}

.light-mode .pdc-widget-separator-without-sidebar {
  background: linear-gradient(to bottom, #fff, #e0e0e0, #fff);
}

.pdc-widget-advantage-bullet {
  color: #ffd700;
  margin-right: 8px;
}

.pdc-widget-advantage-text {
  font-size: 14px;
  flex: 1;
  font-weight: 500;
  width: 197px;
}

body.light-mode .pdc-widget-container .pdc-widget-advantage-text {
  color: #707070;
}

/* Bouton CTA */
.pdc-widget-button-container {
  width: 100%;
}
.pdc-widget-button-container.no-legal-text {
  margin-top: 16px;
}

.pdc-widget-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 21px 14px;
  background: var(--button-color, #ffd700);
  color: var(--button-text-color, #333);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.pdc-widget-button:hover {
  background: var(--button-hover, var(--button-color, #ffd700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--button-text-color, #333);
  text-decoration: none;
}

.pdc-widget-button-text {
  color: var(--button-text-color, #000);
  font-weight: bold;
  font-size: 16px;
}

.light-mode .pdc-widget-button-text {
  color: var(--button-text-color, #000) !important;
}

.light-mode .pdc-widget-button-arrow {
  color: var(--button-text-color, #000) !important;
}

.pdc-widget-button-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--button-text-color, #000);
}

/* Has sidebar template */

.has-sidebar .pdc-widget-column-3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.has-sidebar .pdc-widget-column-1 + .pdc-widget-separator,
.has-sidebar .pdc-widget-column-2,
.has-sidebar .pdc-widget-column-3 .pdc-widget-rating-section {
  display: none;
}

.has-sidebar .pdc-widget-column-1 .pdc-widget-rating-section {
  display: block;
  margin-top: 10px;
}

.has-sidebar .pdc-widget-column-3 .pdc-widget-advantages-list {
  display: block;
}

.has-sidebar .pdc-widget-column-3 {
  flex-direction: row;
  justify-content: start;
  gap: 20px;
}

/* Desktop : masquer les doublons */
.pdc-widget-column-1 .pdc-widget-rating-section,
.pdc-widget-column-3 .pdc-widget-advantages-list,
.pdc-widget-rating-container .pdc-widget-advantages-list {
  display: none;
}

.pdc-widget-infos-column-1 {
  max-width: 200px;
}

.pdc-widget-column-1 .pdc-widget-button-container {
  display: none;
}

.pdc-widget-separator-without-sidebar {
  display: block;
}

.has-sidebar .pdc-widget-separator-without-sidebar {
  display: none;
}

.pdc-widget-column-3 .pdc-widget-separator {
  display: none;
}

.has-sidebar .pdc-widget-column-3 .pdc-widget-separator {
  display: block;
}

.has-sidebar .pdc-widget-advantages-list {
  padding-left: 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pdc-widget-column-1 {
    align-items: start;
  }

  .pdc-widget-rank {
    margin-top: 0px !important;
  }

  .pdc-widget-payment-methods {
    grid-template-columns: repeat(3, 1fr);
  }

  .pdc-widget-column-3 .pdc-widget-separator {
    display: block !important;
  }

  /* Tablette : masquer column-2 et son separator */
  .pdc-widget-column-1 + .pdc-widget-separator,
  .pdc-widget-column-2,
  .pdc-widget-column-3 .pdc-widget-rating-section {
    display: none;
  }

  /* Tablette : afficher rating dans column-1 et advantages dans column-3 */
  .pdc-widget-column-1 .pdc-widget-rating-section {
    display: block;
    margin-top: 10px;
  }

  .pdc-widget-column-3 .pdc-widget-advantages-list {
    display: block;
  }

  .wrapper-logo-infos {
    align-items: start;
  }

  .pdc-widget-advantages-list {
    list-style: none;
    padding: 0px !important;
  }

  .pdc-widget-column-3 .pdc-widget-advantages-list {
    padding-left: 10px !important;
  }

  .pdc-widget-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #46484b;
    color: #fac011;
    padding: 12px 120px;
    border-radius: 20px;
    font-weight: bold;
    width: fit-content;
    margin-inline: auto;
  }

  .pdc-widget-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .pdc-widget-separator-without-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .pdc-widget-main {
    flex-direction: column;
  }

  .pdc-widget-advantages-list {
    display: none !important;
  }

  .pdc-widget-column-1 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .wrapper-logo-infos {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .pdc-widget-rating-section {
    width: fit-content;
    text-align: center;
  }

  .pdc-widget-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .pdc-widget-infos-column-1 {
    max-width: 100%;
  }

  .pdc-widget-payment-methods-container {
    align-items: center;
  }

  .pdc-widget-payment-methods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .pdc-widget-main {
    gap: 15px;
  }

  .pdc-widget-payment-logo {
    width: 50px;
    height: 35px;
  }

  .pdc-widget-rating-badge {
    padding: 14px 40px !important;
    width: 60% !important;
  }

  .pdc-widget-rating-value {
    font-size: 18px;
    margin-right: 14px;
  }

  .pdc-widget-title {
    font-size: 18px;
  }

  .pdc-widget-subtitle {
    font-size: 13px;
  }

  .pdc-widget-advantage-item {
    font-size: 13px;
  }

  .pdc-widget-button {
    width: fit-content;
    margin-inline: auto;
    padding: 20px 40px;
  }

  .pdc-widget-column-3 {
    display: none;
  }

  .pdc-widget-main {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 15px;
  }

  .pdc-widget-rating-section {
    width: 100% !important;
  }

  .pdc-widget-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #46484b;
    color: #fac011;
    padding: 12px 120px;
    border-radius: 20px;
    font-weight: bold;
    width: fit-content;
    margin-inline: auto;
  }

  .pdc-widget-button-container {
    display: block !important;
  }

  .pdc-widget-column-3 .pdc-widget-button-container {
    display: none !important;
  }
}

@media (max-width: 596px) {
  .pdc-widget-rating-badge {
    padding: 14px 40px !important;
    width: 95% !important;
  }

  .pdc-widget-payment-logo {
    width: 45px;
    height: 31px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .pdc-widget-title {
    color: white;
  }

  .pdc-widget-subtitle {
    color: #ccc;
  }

  .pdc-widget-advantage-text {
    color: white;
  }

  .pdc-widget-note-label {
    color: #ccc;
  }


  .pdc-widget-rank {
    color: #ccc;
  }
}
