/* Horizontal card styles - separate file for clarity */
.card-style-horizontal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.card-style-horizontal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

/* Logo section - ONLY for horizontal cards */
.card-style-horizontal .casino-logo {
  max-width: 200px !important;
  max-height: 200px !important;
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.card-style-horizontal .casino-logo img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Info section - ONLY for horizontal cards */
.card-style-horizontal .casino-info {
  flex: 1;
  min-width: 0;
}

.card-style-horizontal .casino-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.card-style-horizontal .casino-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.card-style-horizontal .star-rating {
  color: #4CAF50;
  font-size: 18px;
}

.card-style-horizontal .rating-number {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-left: 8px;
}

/* Details section - ONLY for horizontal cards */
.card-style-horizontal .casino-details-section {
  text-align: center;
  padding: 0 20px;
}

.card-style-horizontal .bonus-text {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.card-style-horizontal .bonus-amount {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.card-style-horizontal .terms {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Actions section - ONLY for horizontal cards */
.card-style-horizontal .casino-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}

.card-style-horizontal .deposit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-style-horizontal .deposit-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.card-style-horizontal .deposit-amount {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.card-style-horizontal .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}

.card-style-horizontal .btn-play {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background: #4CAF50;
  color: white;
  border: 2px solid #4CAF50;
}

.card-style-horizontal .btn-play:hover {
  background: #45a049;
  border-color: #45a049;
  transform: translateY(-1px);
}

.card-style-horizontal .btn-review {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background: transparent;
  border: 2px solid #ddd;
  color: #666;
}

.card-style-horizontal .btn-review:hover {
  border-color: #333;
  color: #333;
}

/* Position badge - top left corner */
.card-style-horizontal .listing-position-badge {
  position: absolute;
  top: 10px;
  left: 16px;
  background: #7c8a7c;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  z-index: 2;
}

/* Special styling for top positions */
.card-style-horizontal .listing-position-badge.top-position {
  background: #FFD700; /* Gold color for #1 position */
  color: #000;
  font-weight: 800;
    border-radius: 50%;

  width: 40px !important;
  height: 40px !important;
  top: 10px !important;
  left: 16px;
}

.card-style-horizontal .listing-position-badge.second-position {
  background: #C0C0C0; /* Silver color for #2 position */
  color: #000;
  font-weight: 800;
  width: 34px;
  height: 34px;
top: 10px !important;
  left: 16px;
}

.card-style-horizontal .listing-position-badge.third-position {
  background: #CD7F32; /* Bronze color for #3 position */
  color: #fff;
  font-weight: 800;
  width: 34px;
  height: 34px;
top: 10px !important;
  left: 16px;
}

/* Exclusive badge - ONLY for horizontal cards */
.card-style-horizontal .exclusive-badge {
  bottom: 12px !important;
top: 10px !important;
  right: 12px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  border-radius: 20px !important;
  width: auto !important;
  display: inline-block !important;
  max-height: 30px !important;
}

/* Адаптивность */
@media (max-width: 768px) {
  .card-style-horizontal {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
    min-height: auto;
  }
  
  .card-style-horizontal::after {
    left: 20px;
    right: 20px;
  }
  
  .card-style-horizontal .casino-info {
    order: 1;
  }
  
  .card-style-horizontal .casino-details-section {
    order: 2;
    padding: 0;
  }
  
  .card-style-horizontal .casino-actions {
    order: 3;
    width: 100%;
    max-width: 200px;
  }
  
  .card-style-horizontal .casino-name {
    font-size: 24px;
  }
  
  .card-style-horizontal .casino-details-section .bonus-text {
    font-size: 20px;
  }
  
  .card-style-horizontal .listing-position-badge {
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .card-style-horizontal .listing-position-badge.top-position {
    width: 32px;
    height: 32px;
    top: 12px;
    left: 12px;
  }
  
  .card-style-horizontal .listing-position-badge.second-position,
  .card-style-horizontal .listing-position-badge.third-position {
    width: 30px;
    height: 30px;
    top: 12px;
    left: 12px;
  }
  
  .card-style-horizontal .exclusive-badge {
    bottom: 12px;
    right: 12px;
    padding: 3px 10px;
    font-size: 10px;
  }
}