/* ============================================================
   HHPoker俱乐部 - SaaS Landing Page
   Custom Styles (extending Tailwind CDN)
   ============================================================ */

/* --- Import Inter font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* --- Selection --- */
::selection {
    background-color: #2563eb;
    color: #ffffff;
}

/* --- Focus ring --- */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* --- Navbar scroll effect (handled via JS, but define transition base) --- */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

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

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle {
    color: #2563eb;
}

.faq-item .faq-content {
    display: none;
}

.faq-item.active .faq-content {
    display: block;
    animation: faqSlideDown 0.3s ease-out;
}

@keyframes faqSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Counter animation (values transition via JS) --- */

/* --- Mobile menu --- */
#mobile-menu.show {
    display: block;
    animation: menuSlideDown 0.3s ease-out;
}

@keyframes menuSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hover card lift --- */
@media (hover: hover) {
    .group:hover {
        /* Tailwind handles translate */
    }
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* --- Scroll reveal base --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .animate-float {
        animation: floatMobile 4s ease-in-out infinite;
    }
}

@keyframes floatMobile {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* --- Loading skeleton for images --- */
img {
    background: linear-gradient(110deg, #f3f4f6 30%, #e5e7eb 50%, #f3f4f6 70%);
    background-size: 200% 100%;
}

img[src] {
    background: none;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
