/* ============================================================
   HHPoker 官方首页 - 高端VIP风格样式
   编号: 0038
   主色调: 金色 #D4A574 + 深蓝 #1E3A5F
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --gold: #D4A574;
    --gold-light: #E8CDA0;
    --gold-dark: #B8894A;
    --navy: #1E3A5F;
    --navy-light: #2A5080;
    --navy-dark: #152A45;
    --navy-mid: #1A3352;
    --gold-rgb: 212, 165, 116;
}

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

body {
    overflow-x: hidden;
}

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

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

/* ---------- Navbar Glass Morphism ---------- */
#navbar {
    background: rgba(21, 42, 69, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

#navbar.scrolled {
    background: rgba(21, 42, 69, 0.92);
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Hero Image Glow ---------- */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold-light), var(--gold));
    background-size: 300% 300%;
    animation: goldBorderRotate 4s ease-in-out infinite;
    z-index: 5;
    opacity: 0.8;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 22px;
    background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    z-index: 3;
    animation: heroGlowPulse 3s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    border-radius: 24px;
    background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.2) 0%, transparent 60%);
    z-index: 2;
    animation: heroGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes goldBorderRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ---------- Gold Button ---------- */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::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%
    );
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Outline gold button */
.btn-outline-gold {
    position: relative;
}

.btn-outline-gold::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-outline-gold:hover::before {
    opacity: 0.5;
}

/* ---------- Feature Card Metallic Effect ---------- */
.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(212, 165, 116, 0.4) 0%,
        rgba(232, 205, 160, 0.15) 25%,
        rgba(212, 165, 116, 0.05) 50%,
        rgba(184, 137, 74, 0.2) 75%,
        rgba(212, 165, 116, 0.4) 100%
    );
    -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: 1;
}

.feature-card {
    box-shadow:
        inset 0 1px 0 rgba(212, 165, 116, 0.3),
        inset 0 -1px 0 rgba(212, 165, 116, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(212, 165, 116, 0.5),
        inset 0 -1px 0 rgba(212, 165, 116, 0.2),
        0 8px 40px rgba(212, 165, 116, 0.15),
        0 0 0 1px rgba(212, 165, 116, 0.3);
    transform: translateY(-4px);
}

/* Card shine effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(212, 165, 116, 0.08) 0%,
        transparent 60%
    );
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .card-shine {
    opacity: 0;
}

.feature-card:hover .card-shine {
    background: radial-gradient(
        ellipse at 70% 80%,
        rgba(212, 165, 116, 0.12) 0%,
        transparent 60%
    );
    opacity: 1;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 8px 40px rgba(212, 165, 116, 0.1);
    transform: translateY(-4px);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 165, 116, 0.4);
}

.faq-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    border-radius: 12px;
}

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

.faq-answer {
    animation: faqSlideIn 0.3s ease-out;
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Stats Counter ---------- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

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

/* ---------- Gold Pulse Animation (for icons) ---------- */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 165, 116, 0);
    }
}

.feature-card:hover .fa-solid,
.feature-card:hover .fa-brands {
    animation: goldPulse 2s infinite;
}

/* ---------- Floating Gold Particles ---------- */
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.3);
        opacity: 0;
    }
}

/* ---------- Section Reveal on Scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    animation: mobileMenuIn 0.3s ease-out;
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .hero-image-wrapper::before {
        inset: -3px;
        border-radius: 14px;
    }
    .hero-image-wrapper::after {
        inset: -8px;
        border-radius: 18px;
    }

    #mobile-menu a {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
