﻿/* ============================================================
   HHPoker - Shared Stylesheet
   Premium SaaS-style design system
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #6366f1;
  --color-accent: #f59e0b;
  --color-bg: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Glassmorphism Navbar --- */
.navbar-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* --- Hero Gradient Background --- */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f5f3ff 60%, #fdf2f8 100%);
}

/* --- CTA Gradient --- */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
}

/* --- Card Hover Animation --- */
.card-hover {
  transition: var(--transition-base);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--color-primary);
  transition: var(--transition-base);
}
.card-hover:hover .feature-icon-wrap {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #ffffff;
  transform: scale(1.1);
}

/* --- Stats Counter --- */
.stat-number {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Testimonial Stars --- */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}
.faq-details {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-base);
}
.faq-details[open] {
  border-color: #c7d2fe;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}
.faq-details summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  transition: var(--transition-base);
}
.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(--color-text-muted);
  transition: transform 0.3s ease;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.faq-details[open] summary::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.faq-details[open] summary {
  background: #f5f3ff;
  color: var(--color-primary);
}
.faq-details .faq-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}
.btn-secondary:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  max-height: 400px;
}

/* --- Footer Link Hover --- */
.footer-link {
  color: #94a3b8;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-link:hover {
  color: #ffffff;
}

/* --- Pulse Dot for Download Page --- */
.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* --- Background Patterns --- */
.dots-pattern {
  background-image: radial-gradient(circle, #c7d2fe 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Table styles for club page --- */
.club-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--color-text);
}
.club-table td, .club-table th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

/* --- Download card glow --- */
.download-card-glow {
  position: relative;
}
.download-card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #f59e0b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* --- Step number badge --- */
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  .faq-details summary {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}
