/* ============================================
   JACK'S POKEMON PACKS - LANDING PAGE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #1a1a1f;
    --bg-darker: #121215;
    --bg-card: #2a2a32;
    --accent-gold: #ffd700;
    --accent-purple: #9b59b6;
    --accent-blue: #3498db;
    --accent-pink: #e91e63;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --glow-color: rgba(255, 215, 0, 0.3);
}

html {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.15) 0%, rgba(52, 152, 219, 0.1) 30%, var(--bg-dark) 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* Container */
.container {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    flex-shrink: 0;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff8dc 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.logo-icon {
    font-size: 1.2em;
    -webkit-text-fill-color: var(--accent-gold);
    animation: bolt 2s ease-in-out infinite;
}

@keyframes bolt {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* Card Showcase */
.card-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.card-container {
    perspective: 1000px;
    width: min(280px, 70vw);
    height: min(392px, 55vh);
    max-width: 100%;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(155, 89, 182, 0.2),
        0 0 40px rgba(52, 152, 219, 0.2);
}

.card-front {
    background: linear-gradient(145deg, #3d3d4a, #2a2a32);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Holographic Effects */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 35%,
            rgba(255, 255, 255, 0.3) 42%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 3;
}

.card:hover .card-shine {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.4) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: overlay;
}

.card:hover .card-glare {
    opacity: 1;
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--holo-angle, 135deg),
            rgba(255, 0, 128, 0.15) 0%,
            rgba(0, 255, 255, 0.15) 25%,
            rgba(255, 255, 0, 0.15) 50%,
            rgba(0, 128, 255, 0.15) 75%,
            rgba(255, 0, 255, 0.15) 100%);
    opacity: 0.7;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: color-dodge;
}

.card:hover .holographic-overlay {
    opacity: 1;
    animation: holoShift 3s linear infinite;
}

@keyframes holoShift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Rainbow Sparkle Effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 5;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    flex-shrink: 0;
}

.coming-soon {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
    letter-spacing: 2px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Responsive - Small phones */
@media (max-width: 380px) {
    .container {
        padding: 1rem;
        gap: 1rem;
    }

    .card-container {
        width: min(240px, 80vw);
        height: min(336px, 50vh);
    }
}

/* Responsive - Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        gap: 2rem;
        padding: 1rem 2rem;
    }

    .header {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo {
        font-size: 1.2rem;
    }

    .card-container {
        width: min(200px, 30vw);
        height: min(280px, 80vh);
    }

    .cta-section {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .coming-soon {
        font-size: 0.9rem;
    }
}

/* Card Active State for Touch */
.card.active .card-shine {
    animation: shine 0.8s ease-in-out;
}

.card.active .card-glare {
    opacity: 1;
}

.card.active .holographic-overlay {
    opacity: 1;
    animation: holoShift 3s linear infinite;
}

.card.active::before {
    opacity: 1;
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}