/* Search Bar Styles */
#searchBar,
.search-container-inline input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10); /* contour visible sur fond sombre */
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

#searchBar:focus,
.search-container-inline input:focus {
    border: 1px solid rgba(133, 133, 133, 0.2);
    border-radius: 0.5rem;
    background-color: rgba(133, 133, 133, 0.5);
  outline: 3px solid rgba(255, 255, 255, 0.6);
  
}

.search-container::before {
  content: "🔍";
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
  pointer-events: none;
}

.search-container-inline::before {
  content: "🔍";
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
  pointer-events: none;
}

/* Navigation Buttons */
.nav-btn {
  backdrop-filter: blur(10px);
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border: white 1px solid;
}

.nav-btn:hover {
  background: rgba(246, 241, 255, 0.3);
  transform: translateY(-2px);
}

.nav-btn:active {
  transform: translateY(0);
}

/* Main Action Buttons */
.btn {
  flex: 1;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--card-text-primary);
  border: 2px solid var(--blue-light);
}

.btn-secondary:hover {
  background-color: var(--blue-light);
  color: white;
  transform: translateY(-3px);
  border: 2px solid var(--blue-light);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: 90px;
  max-width: 10%;
  flex-shrink: 0;
  background: rgba(196, 30, 58, 0.7);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-small:hover {
  background: rgba(196, 30, 58, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

/* General Card Styles */
.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 330px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 2px solid rgba(59, 130, 246, 0.2);
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
  border: 2px solid var(--blue-light);
}

/* Badge Styles */
.badge {
  position: absolute;
  top: 25px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background-size: 200% 200%;
}

.badge.featured {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #7c3aed 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(59,130,246,0.28);
}

.badge.popular {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #ef4444 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(245,158,11,0.28);
}

.badge.new {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #06b6d4 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(16,185,129,0.28);
}

.badge.secondary.gamdom,
.badge.secondary.stake,
.badge.secondary.roobet,
.badge.secondary.clash {
  position: absolute;
  right: 15px;
  top: 65px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.95rem; 
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  line-height: 1;
  background-size: 200% 200%;
}

.badge.secondary.gamdom {
  background: linear-gradient(135deg, #00e087 0%, #00b67a 50%, #009966 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(0,182,122,0.22);
}

.badge.secondary.stake {
  background: linear-gradient(135deg, #11131a 0%, #1b1f31 50%, #2b3344 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.badge.secondary.roobet {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6b21a8 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.28);
}

.badge.secondary.clash {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
}

.badge.secondary.gamdom span,
.badge.secondary.roobet span,
.badge.secondary.clash span {
  font-size: 85%;
}

.badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.badge.secondary img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
}

/* Bonus Badge for Featured Cards */
.bonus-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: auto;
}

.bonus-badge.gamdom {
  background: linear-gradient(135deg, #00e087 0%, #00b67a 50%, #009966 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(0,182,122,0.22);
}

.bonus-badge.stake {
  background: linear-gradient(135deg, #11131a 0%, #1b1f31 50%, #2b3344 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.bonus-badge.roobet {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6b21a8 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.28);
}

.bonus-badge.clash {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
}


/* Scroll Arrow */
.scroll-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 998;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-arrow:hover {
  transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-img {
  width: 50px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.scroll-arrow-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-arrow.hidden {
  display: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}