/* 
   Free Fire Community Malaysia - E-Sports UI Framework v1.0 
   Author: Antigravity
*/

:root {
    --ff-neon-blue: #00d4ff;
    --ff-neon-red: #ff2a40;
    --ff-neon-yellow: #ffea00;
    --ff-neon-green: #00ff88;
    --ff-glass-deep: rgba(11, 12, 16, 0.85);
    --ff-hud-border: rgba(255, 255, 255, 0.15);
}

/* 1. HUD & BORDERS */
.ff-hud-box {
    position: relative;
    border: 1px solid var(--ff-hud-border);
    background: var(--ff-glass-deep);
    backdrop-filter: blur(12px);
    padding: 2rem;
    overflow: hidden;
}

.ff-hud-box::before,
.ff-hud-box::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--ff-neon-blue);
}

.ff-hud-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.ff-hud-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.ff-border-neon-red {
    border-color: var(--ff-neon-red) !important;
}

.ff-border-neon-blue {
    border-color: var(--ff-neon-blue) !important;
}

.ff-border-neon-yellow {
    border-color: var(--ff-neon-yellow) !important;
}

/* 2. NEON GLOWS */
.ff-glow-blue {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.ff-glow-red {
    text-shadow: 0 0 10px rgba(255, 42, 64, 0.6);
}

.ff-bg-glow-blue {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.ff-bg-glow-red {
    box-shadow: 0 0 20px rgba(255, 42, 64, 0.3);
}

/* 3. ANIMATED UTILITIES */
@keyframes ff-scanner {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.ff-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ff-neon-blue), transparent);
    animation: ff-scanner 3s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes ff-glitch {
    0% {
        clip: rect(44px, 450px, 56px, 0);
        transform: skew(0.51deg);
    }

    20% {
        clip: rect(12px, 450px, 100px, 0);
        transform: skew(0.4deg);
    }

    100% {
        clip: rect(67px, 450px, 34px, 0);
        transform: skew(0.1deg);
    }
}

.ff-glitch:hover {
    animation: ff-glitch 0.3s infinite linear alternate-reverse;
}

/* 4. PREMIUM COMPONENTS */
.ff-badge-pro {
    background: linear-gradient(90deg, var(--ff-neon-red), #800000);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.ff-btn-hud {
    background: transparent;
    color: var(--ff-neon-blue);
    border: 1px solid var(--ff-neon-blue);
    padding: 10px 25px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    clip-path: polygon(0 0, 85% 0, 100% 30%, 100% 100%, 15% 100%, 0 70%);
}

.ff-btn-hud:hover {
    background: var(--ff-neon-blue);
    color: black;
    box-shadow: 0 0 20px var(--ff-neon-blue);
}

/* 5. LAYOUTS */
.ff-grid-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}