/**
 * White Label Poker Landing Page - Modern 3D Design
 */

/* ===== CSS Custom Properties ===== */
:root {
    --wlp-primary: #0a0a1a;
    --wlp-secondary: #16213e;
    --wlp-accent: #f5c518;
    --wlp-accent2: #e94560;
    --wlp-accent3: #00d4ff;
    --wlp-dark: #050510;
    --wlp-light: #f0f0f0;
    --wlp-glass: rgba(255, 255, 255, 0.05);
    --wlp-glass-border: rgba(255, 255, 255, 0.1);
    --wlp-glass-hover: rgba(255, 255, 255, 0.1);
}

/* ===== Background Canvas ===== */
body.wlp-landing-page {
    background: var(--wlp-dark);
    color: #fff;
    overflow-x: hidden;
}

body.wlp-landing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 197, 24, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(233, 69, 96, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header Moderno ===== */
body.wlp-landing-page .site-header {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.wlp-landing-page .site-header.scrolled {
    background: rgba(5, 5, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Hero Section - 3D Parallax ===== */
.wlp-hero {
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

.wlp-hero .wp-block-cover__background {
    background: linear-gradient(135deg, 
        rgba(5, 5, 16, 0.9) 0%, 
        rgba(22, 33, 62, 0.4) 50%, 
        rgba(10, 10, 26, 0.8) 100%
    ) !important;
}

/* Animated gradient overlay */
.wlp-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(245, 197, 24, 0.05) 60deg,
        transparent 120deg,
        rgba(233, 69, 96, 0.05) 180deg,
        transparent 240deg,
        rgba(0, 212, 255, 0.05) 300deg,
        transparent 360deg
    );
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotateGradient {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 3D Floating Cards ===== */
.wlp-3d-cards {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.wlp-3d-card {
    background: var(--wlp-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--wlp-glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.wlp-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 197, 24, 0.1) 0%, 
        transparent 50%,
        rgba(233, 69, 96, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
}

.wlp-3d-card:hover::before {
    opacity: 1;
}

.wlp-3d-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: rgba(245, 197, 24, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(245, 197, 24, 0.05);
}

.wlp-3d-card .feature-icon {
    font-size: 3rem;
    display: inline-block;
    transition: transform 0.5s ease;
    transform: translateZ(30px);
}

.wlp-3d-card:hover .feature-icon {
    transform: translateZ(60px) scale(1.1);
}

.wlp-3d-card h3 {
    color: var(--wlp-accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transform: translateZ(20px);
}

.wlp-3d-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateZ(10px);
}

/* ===== Stats with 3D Numbers ===== */
.wlp-stat-item {
    perspective: 800px;
}

.wlp-stat-item .stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--wlp-accent), var(--wlp-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
    transform: translateZ(40px);
}

.wlp-stat-item:hover .stat-number {
    transform: translateZ(60px) scale(1.05);
}

/* ===== Glass Cards ===== */
.wlp-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.wlp-glass-card:hover {
    border-color: rgba(245, 197, 24, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* ===== Testimonials 3D ===== */
.wlp-testimonial-3d {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.wlp-testimonial-3d:hover {
    transform: translateY(-8px) rotateX(3deg);
    border-color: rgba(245, 197, 24, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.wlp-testimonial-3d .stars {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.wlp-testimonial-3d .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 1rem;
}

.wlp-testimonial-3d .testimonial-author {
    color: var(--wlp-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== Botón 3D ===== */
.wlp-btn-3d {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    text-decoration: none;
}

.wlp-btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.wlp-btn-3d:hover {
    transform: translateY(-3px) translateZ(10px);
}

.wlp-btn-3d:hover::before {
    opacity: 0.5;
}

.wlp-btn-3d:active {
    transform: translateY(0) translateZ(0);
}

/* ===== Game Container 3D ===== */
.wlp-game-container {
    perspective: 1500px;
}

.wlp-game-container .wlp-poker-container {
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(245, 197, 24, 0.03);
    transition: all 0.5s ease;
    background: #000;
}

.wlp-game-container .wlp-poker-container:hover {
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(245, 197, 24, 0.06);
    transform: perspective(1500px) rotateX(2deg);
}

/* ===== CTA Section 3D ===== */
.wlp-cta-3d {
    position: relative;
    overflow: hidden;
}

.wlp-cta-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(245, 197, 24, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== Particles Canvas ===== */
#wlp-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== Section Titles ===== */
.wlp-section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--wlp-accent) 50%, var(--wlp-accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wlp-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Section Spacing ===== */
.wlp-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

/* ===== Grid Layouts ===== */
.wlp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.wlp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ===== Divider ===== */
.wlp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.2), transparent);
    margin: 0;
    border: none;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 197, 24, 0.4);
    }
}

.wlp-animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.wlp-animate-scale {
    animation: fadeInScale 0.6s ease forwards;
}

.wlp-animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Scrollbar ===== */
body.wlp-landing-page::-webkit-scrollbar {
    width: 8px;
}

body.wlp-landing-page::-webkit-scrollbar-track {
    background: var(--wlp-dark);
}

body.wlp-landing-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--wlp-accent), var(--wlp-accent2));
    border-radius: 4px;
}

body.wlp-landing-page::-webkit-scrollbar-thumb:hover {
    background: var(--wlp-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .wlp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wlp-section {
        padding: 4rem 0;
    }
    
    .wlp-grid-4,
    .wlp-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .wlp-stat-item .stat-number {
        font-size: 3rem;
    }
    
    .wlp-3d-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .wlp-section {
        padding: 3rem 1rem;
    }
    
    .wlp-stat-item .stat-number {
        font-size: 2.5rem;
    }
}