/**
 * DUO PLAY - Custom Styles & Mobile Enhancements
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --duo-bg-dark: #0B0E17;
    --duo-bg-card: #131127;
    --duo-purple: #8B5CF6;
    --duo-pink: #EC4899;
    --duo-emerald: #10B981;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--duo-bg-dark);
    color: #F8FAFC;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Glassmorphism */
.glass-panel {
    background: rgba(19, 17, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.glass-card {
    background: linear-gradient(135deg, rgba(26, 22, 53, 0.8) 0%, rgba(15, 13, 31, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

/* Glow effects */
.glow-pink {
    box-shadow: 0 0 25px -5px rgba(236, 72, 153, 0.5);
}

.glow-violet {
    box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.5);
}

/* Connect Four disc dropping animation */
@keyframes dropDisc {
    0% {
        transform: translateY(-300px);
        opacity: 0.8;
    }
    70% {
        transform: translateY(10px);
    }
    90% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-drop {
    animation: dropDisc 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Pulse turn indicator */
@keyframes turnGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
        border-color: rgba(236, 72, 153, 0.8);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
        border-color: rgba(139, 92, 246, 1);
    }
}

.active-turn-ring {
    animation: turnGlow 2s infinite ease-in-out;
}

/* Card flip animation */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 14, 23, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.6);
}

