/* ============================================
   HHPoker 德扑圈俱乐部 - Custom Styles
   Warm Orange + Deep Gray Gradient Theme
   ============================================ */

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Selection --- */
::selection {
    background-color: #F97316;
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #F97316, #FBBF24);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F97316;
}

/* --- Glassmorphism Navbar Shadow Override --- */
#navbar .backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* --- Animated Pulse Glow --- */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}
.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}
.delay-1000 {
    animation-delay: 1s;
}

/* --- Feature Card Warm Gradient Border on Hover --- */
.feature-card {
    position: relative;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, #F97316, #FBBF24, #F97316);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    border-color: transparent;
}

/* --- Stat Counter Animation --- */
.stat-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* --- Testimonial Card --- */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
}

/* --- FAQ Accordion --- */
.faq-item .faq-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle .fa-chevron-down {
    transform: rotate(180deg);
}
.faq-item.active {
    border-color: rgba(249, 115, 22, 0.4) !important;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.08);
}

/* FAQ answer expand */
.faq-answer-1.active,
.faq-answer-2.active,
.faq-answer-3.active,
.faq-answer-4.active,
.faq-answer-5.active,
.faq-answer-6.active {
    max-height: 500px !important;
}

/* --- CTA Section Warm Glow --- */
#cta {
    position: relative;
}

/* --- Form Input Styling --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a2e inset !important;
    caret-color: #fff;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F97316' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px !important;
}

/* --- Button Shine Effect --- */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* --- Navbar Scrolled State --- */
#navbar.scrolled .backdrop-blur-md {
    background-color: rgba(26, 26, 46, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero Image Overlay --- */
#hero img {
    filter: brightness(0.4);
}

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 0;
    }
}

/* --- Focus ring for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* --- Warm gradient text utility --- */
.text-gradient-warm {
    background: linear-gradient(to right, #F97316, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Border gradient utility for hover --- */
.border-warm-hover {
    transition: border-color 0.3s ease;
}
.border-warm-hover:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

/* --- Card hover lift --- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
