/* ============================================
   Poker247.online — Homepage-Only Styles
   Heavy animations, particles, hero effects
   Only loaded on index.html for CWV optimization
   ============================================ */

/* Animated Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(180, 74, 255, 0.05) 0%, transparent 60%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    animation: floatParticle 15s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(2) { left: 20%; animation-delay: -2s; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.particle:nth-child(3) { left: 40%; animation-delay: -4s; background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.particle:nth-child(4) { left: 60%; animation-delay: -6s; }
.particle:nth-child(5) { left: 80%; animation-delay: -8s; background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
.particle:nth-child(6) { left: 10%; animation-delay: -10s; background: var(--neon-gold); box-shadow: 0 0 10px var(--neon-gold); }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.particle:nth-child(8) { left: 90%; animation-delay: -14s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Grid Lines */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 .line1 {
    display: block;
    color: var(--text-white);
}

.hero h1 .line2 {
    display: block;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-cta:hover {
    color: var(--neon-green);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-cta:hover .scroll-arrow {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

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

/* ============================================
   Deals Section
   ============================================ */
.deals-section {
    padding: 6rem 0;
    position: relative;
}

.deals-swiper {
    padding: 2rem;
    overflow: visible;
}

.deals-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* Deal Card — Glassmorphism */
.deal-card {
    flex: 0 0 400px;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

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

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

.deal-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--card-color);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(var(--card-rgb), 0.2),
        inset 0 0 60px rgba(var(--card-rgb), 0.05);
}

.deal-card.stake { --card-color: var(--neon-blue); --card-rgb: 0, 212, 255; }
.deal-card.natural8 { --card-color: var(--neon-green); --card-rgb: 0, 255, 136; }
.deal-card.onewin { --card-color: var(--neon-purple); --card-rgb: 180, 74, 255; }

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--card-rgb), 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.deal-card:hover .card-glow {
    opacity: 1;
}

/* Card Header */
.card-header {
    padding: 2rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.platform-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--card-color);
    border-radius: 50%;
}

.platform-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--card-color);
    text-shadow: 0 0 30px rgba(var(--card-rgb), 0.5);
    margin-bottom: 0.5rem;
}

.platform-tagline {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Bonus Display */
.bonus-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bonus-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bonus-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.bonus-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--card-color);
    text-shadow: 0 0 30px rgba(var(--card-rgb), 0.6);
    letter-spacing: 1px;
}

.bonus-sub {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Card Features */
.card-features {
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    color: var(--text-white);
    padding-left: 0.5rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--card-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--card-color);
    flex-shrink: 0;
}

/* Promo Code Section */
.promo-section {
    padding: 0 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.promo-box {
    background: rgba(var(--card-rgb), 0.08);
    border: 1px dashed rgba(var(--card-rgb), 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-box:hover {
    background: rgba(var(--card-rgb), 0.15);
    border-style: solid;
}

.promo-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.promo-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--card-color);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.copy-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.promo-box:hover .copy-btn {
    background: var(--card-color);
    color: var(--bg-dark);
}

/* CTA Button */
.card-cta {
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 1;
}

.claim-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--card-color), rgba(var(--card-rgb), 0.7));
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.claim-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.claim-btn:hover::before {
    left: 100%;
}

.claim-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(var(--card-rgb), 0.4);
}

.review-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.review-link:hover {
    color: var(--neon-green);
}

/* ============================================
   How It Works
   ============================================ */
.how-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02), transparent);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.step-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.1);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.step-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Banner Section
   ============================================ */
.banner-section {
    padding: 4rem 2rem;
    text-align: center;
}

.banner-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.banner-wrapper:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 40px rgba(180, 74, 255, 0.2);
}

.banner-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.banner-image {
    max-width: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.02);
}

/* ============================================
   Homepage Responsive Overrides
   ============================================ */
@media (max-width: 1024px) {
    .deals-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 2rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .deal-card {
        scroll-snap-align: center;
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .deal-card {
        flex: 0 0 320px;
    }
}

/* ============================================
   Light Theme Overrides (Homepage)
   ============================================ */
[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 153, 77, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 136, 170, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(122, 46, 191, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .particle {
    opacity: 0.25;
}

[data-theme="light"] .grid-overlay {
    opacity: 0.03;
}

[data-theme="light"] .deal-card {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .hero {
    background: transparent;
}

[data-theme="light"] .step-card {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .banner-wrapper {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .deal-cta {
    color: #ffffff;
}

[data-theme="light"] .deal-cta:hover {
    color: #ffffff;
}
