/* =======================================================
   KMB CANLI MAÇ — 10 NEON GLOW OLAY ROZETLERİ (NEON-BADGES.CSS)
   Birebir Referans: Görsel 3 (media_1792392734119.jpg)
   Tam Duyarlı (Responsive) & Asla Taşma Yapmayan Tasarım
======================================================= */

.neon-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    padding: 14px;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.neon-badges-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.neon-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-sizing: border-box;
}

.neon-badge-card:hover {
    transform: translateY(-3px) scale(1.05);
}

.neon-badge-header {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.neon-badge-frame {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, #131b26 0%, #0a0f17 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid;
    transition: all 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.neon-badge-frame svg {
    width: 48px;
    height: 48px;
    transition: transform 0.25s ease;
}

.neon-badge-card:hover .neon-badge-frame svg {
    transform: scale(1.1);
}

.neon-badge-footer {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-top: 4px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* 1. GOAL! (Amber / Fire Red) */
.badge-goal .neon-badge-header,
.badge-goal .neon-badge-footer { color: #ff5722; text-shadow: 0 0 10px rgba(255, 87, 34, 0.5); }
.badge-goal .neon-badge-frame {
    border-color: #ff5722;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.35), inset 0 0 10px rgba(255, 87, 34, 0.2);
}

/* 2. REF HAKEM (Neon Green) */
.badge-ref .neon-badge-header,
.badge-ref .neon-badge-footer { color: #00e676; text-shadow: 0 0 10px rgba(0, 230, 118, 0.5); }
.badge-ref .neon-badge-frame {
    border-color: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.35), inset 0 0 10px rgba(0, 230, 118, 0.2);
}

/* 3. KARTLAR (Yellow/Amber) */
.badge-cards .neon-badge-header,
.badge-cards .neon-badge-footer { color: #ffc107; text-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }
.badge-cards .neon-badge-frame {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.35), inset 0 0 10px rgba(255, 193, 7, 0.2);
}

/* 4. KORNER (Cyan / Teal) */
.badge-corner .neon-badge-header,
.badge-corner .neon-badge-footer { color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.badge-corner .neon-badge-frame {
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.2);
}

/* 5. KURTARIŞ (Electric Blue) */
.badge-save .neon-badge-header,
.badge-save .neon-badge-footer { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.badge-save .neon-badge-frame {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35), inset 0 0 10px rgba(56, 189, 248, 0.2);
}

/* 6. OFSAYT (Amber / Flame) */
.badge-offside .neon-badge-header,
.badge-offside .neon-badge-footer { color: #fb923c; text-shadow: 0 0 10px rgba(251, 146, 60, 0.5); }
.badge-offside .neon-badge-frame {
    border-color: #fb923c;
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.35), inset 0 0 10px rgba(251, 146, 60, 0.2);
}

/* 7. CANLI SPİKER (Emerald Green / Wave) */
.badge-spiker .neon-badge-header,
.badge-spiker .neon-badge-footer { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.badge-spiker .neon-badge-frame {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35), inset 0 0 10px rgba(16, 185, 129, 0.2);
}

/* 8. RADAR (Deep Cyan / Electric) */
.badge-radar .neon-badge-header,
.badge-radar .neon-badge-footer { color: #06b6d4; text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
.badge-radar .neon-badge-frame {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.35), inset 0 0 10px rgba(6, 182, 212, 0.2);
}

/* 9. OYUNCU DEĞİŞİKLİĞİ (Red & Green Dual) */
.badge-sub .neon-badge-header,
.badge-sub .neon-badge-footer { color: #f43f5e; text-shadow: 0 0 10px rgba(244, 63, 94, 0.5); }
.badge-sub .neon-badge-frame {
    border-color: #f43f5e;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.35), inset 0 0 10px rgba(244, 63, 94, 0.2);
}

/* 10. VAR (Gold / Orange) */
.badge-var .neon-badge-header,
.badge-var .neon-badge-footer { color: #eab308; text-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.badge-var .neon-badge-frame {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.35), inset 0 0 10px rgba(234, 179, 8, 0.2);
}

/* =======================================================
   ADMIN CANLI YÖNETİM MASASI ROZETLERİ (10 NEON KONTROL)
   ======================================================= */
.neon-admin-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 10px;
    padding: 12px;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.neon-admin-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.neon-admin-badge-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.neon-badge-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
}

.neon-badge-action-btn {
    width: 100%;
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.neon-badge-action-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.neon-badge-action-btn:active {
    transform: scale(0.96);
}

/* =======================================================
   MOBİL HIZLI KATEGORİ VE FİLTRELEME SİSTEMİ
   ======================================================= */
.neon-category-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 4px 8px 4px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.neon-category-filter-bar::-webkit-scrollbar {
    display: none;
}
.neon-cat-btn {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 39, 0.85);
    color: #cbd5e1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}
.neon-cat-btn:hover {
    border-color: rgba(0, 240, 255, 0.5);
    color: #fff;
}
.neon-cat-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(14, 165, 233, 0.35) 100%);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.neon-filter-search-wrap {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}
.neon-badge-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 36px 8px 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}
.neon-badge-search-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}
.neon-badge-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    display: none;
}

@media (max-width: 600px) {
    .neon-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
        gap: 8px;
        padding: 8px;
    }
    .neon-badge-frame {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }
    .neon-badge-frame svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .neon-admin-badges-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 8px !important;
    }
    .neon-admin-badge-card {
        padding: 8px 10px !important;
    }
    /* Mobilde dev SVG çerçevesini gizle böylece butonlar doğrudan parmak hizasına gelir */
    .neon-admin-badge-card .neon-badge-frame {
        display: none !important;
    }
    .neon-badge-header {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 4px !important;
    }
    .neon-badge-footer {
        display: none !important;
    }
    .neon-badge-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }
    .neon-badge-action-btn {
        min-height: 42px !important;
        font-size: 0.76rem !important;
        padding: 8px 4px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: center !important;
        border-radius: 8px !important;
    }
}
