/* ============================================================
   HHPoker - Shared Styles
   ============================================================ */

/* CSS Variables */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.gradient-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}
.gradient-cta {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  text-decoration: none;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  gap: 0.5rem;
}
.btn-primary-outline:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

/* Feature Card Hover */
.feature-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Icon Circle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.icon-circle.indigo {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #4f46e5;
}

/* Testimonial Card */
.testimonial-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Stats Counter Animation */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Accordion (FAQ) */
.faq-details {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-details[open] {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}
.faq-details summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: all 0.2s ease;
}
.faq-details summary::-webkit-details-marker {
  display: none;
}
.faq-details summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.faq-details[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-details[open] summary {
  color: var(--primary);
  background: var(--primary-50);
}
.faq-details .faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Nav Link Underline Animation */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Footer Link */
.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.925rem;
}
.footer-link:hover {
  color: var(--white);
}

/* Star Rating */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* Pulse animation for download CTA */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(79, 70, 229, 0);
  }
}
.pulse-glow {
  animation: pulse-glow 2.5s infinite;
}

/* Fade-in-up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Section Divider Wave */
.wave-divider {
  position: relative;
}
.wave-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C240,0 480,60 720,30 C960,0 1200,60 1440,30 L1440,60 L0,60 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* Download page specific */
.download-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}
.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-light);
}
.download-card.recommended {
  border-color: var(--primary);
  position: relative;
}
.download-card.recommended::before {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
}

/* Club page specific */
.club-feature-highlight {
  transition: all 0.3s ease;
}
.club-feature-highlight:hover {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  border-radius: 16px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .btn-primary,
  .btn-primary-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
  }
  .icon-circle {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 14px;
  }
}
