/* ============================================
   线上德州网 - HHpoker 德扑圈
   Custom Stylesheet
   Theme: Fuchsia-600 (#c026d3)
   ============================================ */

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Selection ---- */
::selection {
    background-color: rgba(192, 38, 211, 0.35);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(192, 38, 211, 0.35);
    color: #ffffff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c026d3, #a21caf);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d946ef, #c026d3);
}

/* ---- Focus ring ---- */
*:focus-visible {
    outline: 2px solid rgba(192, 38, 211, 0.6);
    outline-offset: 2px;
}

/* ---- Glow pulse animation ---- */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(192, 38, 211, 0.2),
                    0 0 60px rgba(192, 38, 211, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(192, 38, 211, 0.4),
                    0 0 80px rgba(192, 38, 211, 0.15);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ---- Float animation for cards ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.card-float {
    animation: float 4s ease-in-out infinite;
}

/* ---- Gradient text utility ---- */
.gradient-text {
    background: linear-gradient(135deg, #e879f9, #c026d3, #a21caf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glass card ---- */
.glass-card {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(192, 38, 211, 0.15);
}

/* ---- FAQ Accordion ---- */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: rgba(192, 38, 211, 0.3) !important;
    background: rgba(192, 38, 211, 0.05) !important;
}

/* ---- Step nav active ---- */
.step-nav-item:hover .w-10,
.step-nav-item:target .w-10 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ---- Download button hover effect ---- */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.download-btn:hover::after {
    opacity: 1;
}

/* ---- Card hover lift ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(192, 38, 211, 0.1);
}

/* ---- Feature grid staggered entrance ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ---- Stats counter ---- */
@keyframes countIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-number {
    animation: countIn 0.8s ease forwards;
}

/* ---- Mobile menu transition ---- */
#mobileNav {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileNav:not(.hidden) {
    animation: slideDown 0.3s ease;
}

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

/* ---- Navbar scroll effect ---- */
nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: rgba(3, 3, 3, 0.95) !important;
    box-shadow: 0 4px 20px rgba(192, 38, 211, 0.1);
}

/* ---- Section dividers ---- */
.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(192, 38, 211, 0.2),
        rgba(192, 38, 211, 0.4),
        rgba(192, 38, 211, 0.2),
        transparent
    );
}

/* ---- Badge pulse ---- */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 38, 211, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(192, 38, 211, 0); }
}

.badge-pulse {
    animation: badgePulse 2s infinite;
}

/* ---- Image shimmer (loading) ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img {
    transition: opacity 0.3s ease;
}

/* ---- Link underline effect ---- */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #c026d3, #e879f9);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ---- Print styles ---- */
@media print {
    nav, footer, .salesmartly-widget {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

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