/* ==============================================
   HHpoker Club — Ruby/Red Premium Theme
   Custom animations, card effects, scrollbar
   ============================================== */

/* --- Custom Scrollbar (Ruby Red Tones) --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #1a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e11d48, #be123c);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f43f5e, #e11d48);
}

/* --- Ruby Pulse Keyframes --- */
@keyframes rbPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(225, 29, 72, 0);
  }
}

@keyframes rbFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-8px) translateX(4px);
  }
  50% {
    transform: translateY(-16px) translateX(0px);
  }
  75% {
    transform: translateY(-8px) translateX(-4px);
  }
}

@keyframes rbSlide {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rbGlow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(244, 63, 94, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.8), 0 0 40px rgba(225, 29, 72, 0.4);
  }
}

@keyframes rbShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes rbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rbFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rbScaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rbBorderFlow {
  0% { border-color: #e11d48; }
  25% { border-color: #f43f5e; }
  50% { border-color: #be123c; }
  75% { border-color: #fb7185; }
  100% { border-color: #e11d48; }
}

@keyframes rbIconScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* --- Ruby Card Hover (card-rb class) --- */
.card-rb {
  background: linear-gradient(145deg, #1a0a0d, #2a0f15);
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 20px;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card-rb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-rb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #f43f5e, #e11d48);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card-rb:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow:
    0 12px 40px rgba(225, 29, 72, 0.18),
    0 4px 12px rgba(225, 29, 72, 0.08),
    inset 0 1px 0 rgba(244, 63, 94, 0.08);
  animation: rbBorderFlow 3.5s infinite;
}

.card-rb:hover::before {
  opacity: 1;
}

.card-rb:hover::after {
  transform: scaleX(1);
}

.card-rb .rb-icon {
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #e11d48;
}

.card-rb:hover .rb-icon {
  animation: rbIconScale 0.6s ease-in-out;
  filter: drop-shadow(0 0 10px rgba(225, 29, 72, 0.5));
}

/* --- Ruby Button --- */
.rb-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.rb-btn:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.5);
}

.rb-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: rbShimmer 2.5s infinite;
}

.rb-btn-outline {
  border: 2px solid #e11d48;
  color: #f43f5e;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  letter-spacing: 1px;
}

.rb-btn-outline:hover {
  background: rgba(225, 29, 72, 0.1);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.25);
  transform: translateY(-2px);
}

/* --- Navbar Scroll Shadow --- */
.nav-scrolled-rb {
  box-shadow: 0 4px 30px rgba(225, 29, 72, 0.2);
  background: rgba(15, 5, 5, 0.96) !important;
  backdrop-filter: blur(14px);
}

/* --- FAQ Accordion Styles --- */
.faq-rb-item {
  border: 1px solid rgba(225, 29, 72, 0.15);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
  background: rgba(20, 8, 10, 0.8);
}

.faq-rb-item.active {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1);
}

.faq-rb-question {
  cursor: pointer;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-rb-question:hover {
  background: rgba(225, 29, 72, 0.04);
}

.faq-rb-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 28px;
}

.faq-rb-item.active .faq-rb-answer {
  max-height: 300px;
  padding: 0 28px 20px;
}

.faq-rb-icon {
  transition: transform 0.35s ease;
  color: #e11d48;
  font-size: 14px;
}

.faq-rb-item.active .faq-rb-icon {
  transform: rotate(45deg);
}

/* --- Stat Counter Animation --- */
.stat-number-rb {
  animation: rbGlow 2s ease-in-out infinite;
}

/* --- Section Divider --- */
.rb-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #e11d48, #f43f5e, #e11d48, transparent);
  border: none;
  border-radius: 2px;
}

/* --- Split Hero Image Effect --- */
.hero-img-wrapper {
  position: relative;
}

.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e11d48, #f43f5e, #be123c, #fb7185);
  background-size: 300% 300%;
  animation: rbBorderFlow 4s infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  .mobile-menu-rb {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .mobile-menu-rb.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- Feature Icon Scale on Hover --- */
.feature-card:hover .feature-icon-wrap {
  animation: rbIconScale 0.5s ease-in-out;
  background: rgba(225, 29, 72, 0.2);
}

/* --- Gradient Stats Background Pattern --- */
.stats-rb-bg {
  background:
    linear-gradient(135deg, #0f0305 0%, #1a050a 40%, #250810 70%, #0f0305 100%),
    radial-gradient(ellipse at 30% 50%, rgba(225, 29, 72, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
}
