/* ============================================
   HHpoker - Custom Styles (Social App Style)
   ============================================ */

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F3F4F6;
}
::-webkit-scrollbar-thumb {
    background: #EC4899;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #DB2777;
}

/* --- Navbar Scroll Effect --- */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.1);
}

/* --- Hero Overlay --- */
.hero-overlay {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85) 0%, rgba(219, 39, 119, 0.75) 50%, rgba(190, 24, 93, 0.85) 100%);
}

/* --- Feature Card Hover --- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

/* --- Feature Card Image --- */
.feature-card .card-img-wrap {
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}
.feature-card .card-img-wrap img {
    transition: transform 0.5s ease;
}
.feature-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* --- Stats Counter --- */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --- Stat Card --- */
.stat-card {
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: scale(1.05);
}

/* --- Testimonial Card (Social Feed Style) --- */
.testimonial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* --- Like Heart Animation --- */
.like-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}
.like-btn:hover {
    transform: scale(1.2);
}
.like-btn.liked {
    color: #EC4899 !important;
    animation: heartBeat 0.3s ease;
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- FAQ Accordion --- */
.faq-item {
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item.active {
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.12);
}
.faq-toggle {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}

/* --- Download Button Pulse --- */
.btn-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* --- Club Card --- */
.club-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.12);
}
.club-card .club-img-wrap {
    overflow: hidden;
}
.club-card .club-img-wrap img {
    transition: transform 0.5s ease;
}
.club-card:hover .club-img-wrap img {
    transform: scale(1.05);
}

/* --- Form Styles --- */
.form-input {
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* --- Loading Spinner --- */
.spinner {
    border: 3px solid rgba(236, 72, 153, 0.15);
    border-top-color: #EC4899;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Fade In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Staggered delays --- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- Ripple Effect for Buttons --- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Mobile Menu --- */
#mobile-panel.translate-x-0 {
    transform: translateX(0);
}

/* --- Hero dual buttons --- */
.hero-btn {
    backdrop-filter: blur(4px);
}

/* --- Section heading underline --- */
.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #EC4899, #F43F5E);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* --- Badge --- */
.badge-hot {
    background: linear-gradient(135deg, #EC4899, #F43F5E);
    animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); }
}

/* --- Step number --- */
.step-num {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}

/* --- Platform card --- */
.platform-card {
    transition: all 0.3s ease;
}
.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Toast notification --- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 14px 24px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }

/* --- Responsive video/image ratio --- */
.img-card-ratio {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* --- Social post image grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}
.post-grid img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

/* --- Tabs --- */
.tab-btn {
    transition: all 0.3s ease;
}
.tab-btn.active {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: #fff;
}

/* --- Back to top --- */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}
#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
