/* ============================================
   HHPOKER - Custom Stylesheet
   Design: Red-Black Classic Casino Style
   ============================================ */

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

body {
    overflow-x: hidden;
}

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

::-moz-selection {
    background-color: #dc2626;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* ---- Navbar ---- */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.1);
    border-bottom-color: rgba(220, 38, 38, 0.4);
}

/* ---- Mobile Menu ---- */
#mobile-menu.show {
    display: block !important;
}

#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ---- Feature Cards ---- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

/* ---- Stats ---- */
.stat-number {
    background: linear-gradient(180deg, #ffffff 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- FAQ Accordion ---- */
.faq-item {
    cursor: pointer;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

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

.faq-item.active {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.05);
}

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

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

/* ---- CTA Glow Effect ---- */
.cta-glow {
    position: relative;
}

.cta-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #dc2626, transparent, #dc2626, transparent);
    background-size: 400% 400%;
    z-index: -1;
    animation: glowRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-glow:hover::before {
    opacity: 1;
}

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

/* ---- Pulse Animation ---- */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* ---- Felt Texture ---- */
.felt-bg {
    background-color: #1a5c2a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(34, 100, 50, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(34, 100, 50, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(26, 92, 42, 0.6) 0%, transparent 40%);
}

/* ---- Card Flip (decorative) ---- */
.card-decor {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.card-decor:hover {
    transform: rotateY(10deg) translateY(-8px);
}

/* ---- Responsive Text Adjustments ---- */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem !important;
    }
}

/* ---- Loading Shimmer ---- */
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(220, 38, 38, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Red Gradient Text ---- */
.text-gradient-red {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Border Glow on Hover ---- */
.hover-glow-border {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-glow-border:hover {
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.15), inset 0 0 15px rgba(220, 38, 38, 0.05);
}

/* ---- Section Divider ---- */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
}

/* ---- Button Shine ---- */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: translateX(100%);
}

/* ---- Card Table Background Pattern ---- */
.table-pattern {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
}
