/* ============================================================
   HHPoker 德扑圈俱乐部 — Dark Luxury Gold Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --gold: #c9a84c;
    --gold-light: #d4b86a;
    --gold-dark: #a88a3a;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --dark-card: #111111;
    --glass-bg: rgba(17, 17, 17, 0.7);
    --glass-border: rgba(201, 168, 76, 0.15);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--dark);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition-smooth);
}
.nav-link:hover::after {
    width: 100%;
}

.logo-text {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

/* ---------- Gold Gradient Text ---------- */
.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 30%, var(--gold-dark) 70%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Gold Gradient BG ---------- */
.gold-gradient-bg {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 30%, var(--gold-light) 60%, var(--gold) 100%);
}

/* ---------- Feature Cards ---------- */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.1), 0 0 40px rgba(201, 168, 76, 0.05);
    border-color: rgba(201, 168, 76, 0.35);
}

/* ---------- Stats ---------- */
.stat-item {
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.2), transparent);
}
.stat-item:last-child::after {
    display: none;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.25);
}

/* ---------- FAQ ---------- */
.faq-item {
    transition: border-color var(--transition-smooth);
}
.faq-item.active {
    border-color: rgba(201, 168, 76, 0.4);
}
.faq-content {
    animation: faqSlideDown 0.3s ease-out;
}
@keyframes faqSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
        padding-top: 0;
        padding-bottom: 1.25rem;
    }
}

/* ---------- CTA ---------- */
#cta::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Animations ---------- */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Float pulse for the gold accents */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
    }
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
    max-height: 0;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ---------- Counter Animation (none by default, triggered by JS) ---------- */
.counter {
    display: inline-block;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .stat-item::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .feature-card:hover {
        transform: translateY(-6px);
    }
    .testimonial-card:hover {
        transform: translateY(-4px);
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    #hero {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 4rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
}

/* ---------- Additional Gold Accents ---------- */
.gold-text {
    color: var(--gold);
}

.gold-border {
    border-color: var(--gold);
}

.gold-glow {
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth link transitions */
a {
    transition: color var(--transition-smooth);
}

/* Image loading fallback */
img {
    background: var(--dark-card);
}
