/* =========================
   PROFILE MAPS (RIVALS STYLE)
========================= */

.profile-maps {
    background: #1c212f;
    border: 1px solid #293644;
    border-radius: 6px;
    padding: 12px;
}


/* =========================
   MODE BUTTONS
========================= */

.maps-modes {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.maps-modes button {
    background: #1e2233;
    border: 1px solid #2a3042;
    color: #9ca3af;

    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s;
}

.maps-modes button:hover {
    border-color: #c855f7;
}

.maps-modes button.active {
    background: #2e3b83;
    color: #fff;
}


/* =========================
   MODE BLOCK
========================= */

.map-mode {
    margin-bottom: 14px;
}

.mode-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.mode-title span {
    color: #9ca3af;
    font-weight: 500;
}

/* =========================
   TABLE (FIXED ALIGNMENT)
========================= */

.maps-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 🔥 KEY FIX */
    font-size: 13px;
}


/* HEADER */
.maps-table thead {
    background: #131620;
}

.maps-table th {
    padding: 6px 8px;
    font-weight: 600;
    color: #9ca3af;
    border-bottom: 1px solid #293644;
}

/* 🔥 ALIGN HEADERS */
.maps-table th:first-child {
    text-align: left;
}

.maps-table th:nth-child(2),
.maps-table th:nth-child(3),
.maps-table th:nth-child(4) {
    text-align: center;
}


/* ROW */
.maps-table tbody tr {
    background: #1e2233;
    border-bottom: 1px solid #242837;
    transition: 0.15s;
}

.maps-table tbody tr:hover {
    background: #242836;
}


/* CELL */
.maps-table td {
    padding: 6px 8px;
    vertical-align: middle;
border-right: 1px solid #242837;
}

/* 🔥 ALIGN CELLS */
.maps-table td:first-child {
    text-align: left;
}

.maps-table td:nth-child(2),
.maps-table td:nth-child(3),
.maps-table td:nth-child(4) {
    text-align: center;
}


/* 🔥 COLUMN WIDTH CONTROL */
.maps-table th:nth-child(1),
.maps-table td:nth-child(1) {
    width: 50%;
}

.maps-table th:nth-child(2),
.maps-table td:nth-child(2) {
    width: 12%;
}

.maps-table th:nth-child(3),
.maps-table td:nth-child(3) {
    width: 16%;
}

.maps-table th:nth-child(4),
.maps-table td:nth-child(4) {
    width: 22%;
}


/* =========================
   MAP INFO (LEFT SIDE)
========================= */

.maps-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-image img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    background: #1a1d29;
}

.map-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 120px;
}


/* =========================
   MATCHES COLUMN
========================= */

.highlight {
    color: #c855f7;
    font-weight: 600;
}


/* =========================
   WIN RATE COLORS
========================= */

.win.low {
    color: #e84f64;
    font-weight: 600;
}

.win.mid {
    color: #f0a832;
    font-weight: 600;
}

.win.high {
    color: #00dc80;
    font-weight: 600;
}


/* =========================
   KDA BLOCK (MATCH STYLE)
========================= */

.kda-block {
    text-align: center;
}

.kda-total {
    font-size: 13px;
    font-weight: 600;
    color: #c5c3c0;
}

.kda-breakdown {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Extra Stuff */
/* =========================
   MAP COLUMN (BACKGROUND STYLE)
========================= */

.map-cell {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}


/* BACKGROUND IMAGE */
.map-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0.25; /* 🔥 exactly what you wanted */
    filter: brightness(0.7);
}


/* DARK OVERLAY (improves readability) */
.map-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}


/* CONTENT */
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 6px 10px;

    background: linear-gradient(
        to top,
        rgba(11,11,19,0.9),
        rgba(11,11,19,0.2)
    );

    display: flex;
    align-items: center;
}

/* NAME */
.map-name {
    font-size: 12px;
    font-weight: 700;
    color: #E7E9FF;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-mode {
    display: none;
}

.map-mode.active {
    display: block;
}

.kda-breakdown {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kda-kills {
    color: #22c55e; /* green */
}

.kda-deaths {
    color: #ef4444; /* red */
}

.kda-assists {
    color: #facc15; /* yellow */
}

.kda-sep {
    color: #9ca3af;
    margin: 0 2px;
}

/* =========================
   TIME COLUMN
========================= */

.maps-table td:last-child {
    color: #9ca3af;
    font-size: 12px;
}


/* =========================
   SCROLL (MOBILE)
========================= */

.maps-table-wrapper {
    overflow-x: auto;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .maps-table th,
    .maps-table td {
        padding: 5px;
        font-size: 12px;
    }

    .map-image img {
        width: 34px;
        height: 34px;
    }

    .map-name {
        font-size: 12px;
    }

}