/* Container principal */
.casino-offer-rows-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Carte de rangée de casino */
.casino-offer-row-card {
    position: relative;
    background: var(--background-light, #ffffff);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    min-height: 120px;
}

/* Numéro de rang (cercle gris) */
.casino-offer-row-rank-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    margin-left: 5px;
    flex-shrink: 0;
}

/* Barre latérale colorée */
.casino-offer-row-side-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: var(--border-color, #ffd700);
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

/* Wrapper pour le logo et le badge */
.casino-offer-row-logo-wrapper {
    position: relative;
    display: inline-block;
}

/* Badge centré au-dessus du logo */
.casino-offer-row-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    background: var(--badge-color, #8b5cf6);
    color: white !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    z-index: 10;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

body.light-mode .casino-offer-rows-wrapper .casino-offer-row-badge,
body.light-mode .casino-offer-rows-wrapper .casino-offer-row-badge span {
    color: #ffffff !important;
}
/* Contenu principal en layout horizontal */
.casino-offer-row-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 35px;
}

/* Section gauche : Logo et infos casino */
.casino-offer-row-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 200px;
}

/* Logo du casino */
.casino-offer-row-logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: scale(1);
    transition: transform 0.25s ease;
}

.casino-offer-row-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid #000000;
}

.casino-offer-row-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

/* Informations du casino */
.casino-offer-row-info {
    flex: 1;
}

.casino-offer-row-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

/* Note et étoiles */
.casino-offer-row-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.casino-offer-row-rating-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
}

.casino-offer-row-star {
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-offer-row-star svg {
    width: 10px;
    height: 10px;
    object-fit: contain;
    fill: #fcd34d;
}

.casino-offer-row-rating-text {
    font-size: 10px;
    color: #666 !important;
}

/* Wrapper pour description + bouton (responsive) */
.casino-offer-row-right-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Section centrale : Description de l'offre */
.casino-offer-row-center {
    flex: 1;
    min-width: 0;
}

.casino-offer-row-description {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* Section droite : Bouton CTA */
.casino-offer-row-right {
    flex-shrink: 0;
}

.casino-offer-row-cta-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--button-gradient, #ffd700);
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    overflow: hidden;
    transform: translateY(0);
}

.casino-offer-row-cta-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.75s ease-in-out, opacity 0.2s ease 0.45s;
}

.casino-offer-row-cta-button:hover::before,
.casino-offer-row-cta-button:focus-visible::before {
    transition: transform 0.75s ease-in-out, opacity 0.2s ease;
    transform: translateX(120%);
    opacity: 0.8;
}

.casino-offer-row-button-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

[id^="casino-offer-rows-"] .casino-offer-row-cta-button {
    color: var(--button-text-color);
}

/*  Responsive avec HAS-SIDEBAR */
.has-sidebar .casino-offer-row-right-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.has-sidebar .casino-offer-row-center {
    width: 100%;
}

.has-sidebar .casino-offer-row-right {
    width: 100%;
}

.has-sidebar .casino-offer-row-cta-button {
    width: 100%;
    margin: auto;
    justify-content: center;
}

/* Responsive Design - Tablette et Desktop small */
@media (max-width: 1024px) {
    .casino-offer-row-right-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .casino-offer-row-center {
        width: 100%;
    }
    
    .casino-offer-row-right {
        width: 100%;
    }
    
    .casino-offer-row-cta-button {
        width: 100%;
        margin: auto;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .has-sidebar .casino-offer-row-right-wrapper,
    .casino-offer-rows-wrapper {
        padding: 15px;
    }
    .has-sidebar .casino-offer-row-card,
    .casino-offer-row-card {
        padding: 15px;
        min-height: 100px;
    }
    .has-sidebar .casino-offer-row-content,
    .casino-offer-row-content {
        gap: 40px;
    }
    .has-sidebar .casino-offer-row-rank-number,
    .casino-offer-row-rank-number {
        width: 15px;
        height: 15px;
        font-size: 10px;
        margin-right: 10px;
    }

    .has-sidebar .casino-offer-row-rating-text,
    .casino-offer-row-rating-text {
        font-size: 8px;
    }

    .has-sidebar .casino-offer-row-name,
    .casino-offer-row-name {
        font-size: 14px;
        font-weight: bold;
        margin: 0 0 8px 0;
    }
    
    .has-sidebar .casino-offer-row-left,
    .casino-offer-row-left {
        min-width: 150px;
        gap: 10px;
    }
    
    .has-sidebar .casino-offer-row-logo,
    .casino-offer-row-logo {
        width: 80px;
        height: 80px;
    }
    
    .has-sidebar .casino-offer-row-name,
    .casino-offer-row-name {
        font-size: 16px;
    }
    
    .has-sidebar .casino-offer-row-cta-button,
    .casino-offer-row-cta-button {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .has-sidebar .casino-offer-row-content,
    .casino-offer-row-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .has-sidebar .casino-offer-row-left,
    .casino-offer-row-left {
        justify-content: center;
        align-items: center;
    }

    .has-sidebar .casino-offer-row-center,
    .casino-offer-row-center {
        width: 100%;
        margin: auto;
    }
    
    .has-sidebar .casino-offer-row-info,
    .casino-offer-row-info {
        text-align: center; 
    }
      
    .has-sidebar .casino-offer-row-right-wrapper,
    .casino-offer-row-right-wrapper {
        width: 90%;
        margin: auto;
    }
    
    .has-sidebar .casino-offer-row-description,
    .casino-offer-row-description {
        text-align: center; 
    }

    .has-sidebar .casino-offer-row-cta-button,
    .casino-offer-row-cta-button {
        width: 80%;
        margin: auto;
    }

    .has-sidebar .casino-offer-row-rank-number,
    .casino-offer-row-rank-number {
        display: none;
    }
}

@media (max-width: 480px) {
    .has-sidebar .casino-offer-row-center,
    .casino-offer-row-center {
        width: 100%;
        margin: auto;
    }

    .has-sidebar .casino-offer-row-cta-button,
    .casino-offer-row-cta-button {
        width: 90%;
        margin: auto;
    }
}

body.dark-mode .casino-offer-rows-wrapper .casino-offer-row-card {
    background: #17191D;
}

body.dark-mode .casino-offer-rows-wrapper .casino-offer-row-rank-number {
    background: #000000;
    border: none;
}

.casino-offer-row-card {
  transition: transform 0.28s ease;
}

.casino-offer-row-card--hover {
  transform: translateY(-6px);
}

.casino-offer-row-card:focus-within {
  transform: translateY(-6px);
}

.casino-offer-row-card--hover .casino-offer-row-logo,
.casino-offer-row-card:focus-within .casino-offer-row-logo {
  transform: scale(1.05);
}

.casino-offer-row-card--hover .casino-offer-row-badge,
.casino-offer-row-card:focus-within .casino-offer-row-badge {
  transform: translateX(-50%) scale(1.05);
}

.casino-offer-row-cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.15),
    0 0 16px color-mix(in srgb, var(--button-highlight-color, #ffd700) 40%, transparent);
  filter: brightness(1.05);
}
.casino-offer-row-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--button-highlight-color, #ffd700) 35%, transparent),
    0 0 12px color-mix(in srgb, var(--button-highlight-color, #ffd700) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .casino-offer-row-card {
    transition: none;
  }
  .casino-offer-row-card--hover,
  .casino-offer-row-card:focus-within {
    transform: none;
  }
  .casino-offer-row-card--hover .casino-offer-row-logo,
  .casino-offer-row-card:focus-within .casino-offer-row-logo {
    transform: scale(1);
  }
  .casino-offer-row-card--hover .casino-offer-row-badge,
  .casino-offer-row-card:focus-within .casino-offer-row-badge {
    transform: translateX(-50%) scale(1);
  }
  .casino-offer-row-cta-button {
    transform: none;
    transition: none;
  }
  .casino-offer-row-cta-button::before {
    animation: none;
    transform: translateX(-120%);
    opacity: 0;
  }
}
