/* ==============================================
   HHpoker — Amber/Yellow Premium Theme
   Custom animations, card effects, scrollbar
   ============================================== */

/* --- Custom Scrollbar (Amber Tones) --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a0f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

/* --- Amber Pulse Keyframes --- */
@keyframes amberPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
  }
}

@keyframes amberFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes amberGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  }
  50% {
    text-shadow: 0 0 24px rgba(251, 191, 36, 0.9), 0 0 48px rgba(245, 158, 11, 0.5);
  }
}

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

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

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

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

@keyframes amberBorderFlow {
  0% { border-color: #f59e0b; }
  25% { border-color: #fbbf24; }
  50% { border-color: #d97706; }
  75% { border-color: #fcd34d; }
  100% { border-color: #f59e0b; }
}

/* --- Amber Card Hover (card-am class) --- */
.card-am {
  background: linear-gradient(145deg, #1e1e0f, #2a2a15);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card-am::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-am:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.2),
    0 2px 8px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(245, 158, 11, 0.1);
  animation: amberBorderFlow 3s infinite;
}

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

.card-am .card-icon {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #f59e0b;
}

.card-am:hover .card-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  animation: amberFloat 2s ease-in-out infinite;
}

/* --- Amber Button --- */
.amber-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #1a1a0f;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: amberPulse 2.5s infinite;
}

.amber-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

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

/* --- Navbar Scroll Shadow --- */
.nav-scrolled {
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.15);
  background: rgba(10, 10, 2, 0.95) !important;
  backdrop-filter: blur(12px);
}

/* --- FAQ Accordion Styles --- */
.faq-item {
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

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

.faq-question:hover {
  background: rgba(245, 158, 11, 0.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #f59e0b;
}

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

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

/* --- Section Divider --- */
.amber-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
  border: none;
}

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  .mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
}
