/* =============================================
   Brawlers Role & Ability Map — Enhanced Dark Theme
   ============================================= */

:root {
    --bg-main: #020617; /* Deeper midnight blue */
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --accent-blue: #38bdf8;
    --accent-amber: #fbbf24;
    --glass-bg: rgba(30, 41, 59, 0.4);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #1e293b, #020617);
    background-attachment: fixed;
    color: #e2e8f0;
    line-height: 1.5;
}

/* ── Utilities ── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Brawler Card Columns ── */
.brawler-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.brawler-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

/* ── Individual Brawler Items ── */
.brawler-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.brawler-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
    border-left: 2px solid var(--accent-blue);
}

.brawler-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    filter: saturate(1.2);
}

/* ── Modern Buttons ── */
.filter-btn {
    backdrop-filter: blur(4px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
}

/* ── Modal Enhancements ── */
.modal-bg {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.matchup-card-blue {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.2), rgba(30, 58, 138, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.matchup-card-red {
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.2), rgba(127, 29, 29, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.matchup-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.matchup-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Animations ── */
.modal-enter {
    animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Text Glows */
.text-white {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}