﻿
/* ================= CATEGORY ================= */
.category-wrapper {
    width: 100% !important;
    overflow: hidden !important;
    color: white !important;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
}

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

.category-track {
    display: flex;
    gap: 12px;
}

.category-card {
    flex: 0 0 auto;
    width: 130px;
    height: 140px;
    background: #2c3a47;
    border-radius: 16px;
    border: 2px solid #fff;
    text-align: center;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.category-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.main-title {
    display: block; /* important */
    font-size: 30px;
}

.sub-title {
    display: block; /* important */
    font-size: 20px;
}

.category-card:hover {
    border-color: red;
}

.cat-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
    object-fit:contain;
}

/* Desktop */
@media (min-width: 768px) {
    .category-scroll {
        justify-content: center;
        overflow-x: hidden;
    }

    .category-track {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================= TABLE ================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    color: white;
}

/* TABLE BASE */
.battle-table {
    width: 100%;
    min-width: 700px; /* mobile scroll */
    border-collapse: collapse;
    background: #111;
}

/* HEADER (PURE RED) */
.battle-header {
    background: #c20e49; /* 🔥 clean red */
}

    .battle-header th {
        color: #fff;
        padding: 14px;
        font-weight: 600;
        background-color: #c20e49;
    }

/* BODY */
.battle-table td {
    padding: 12px;
    text-align: center;
}

    .battle-table td:first-child {
        text-align: left;
        color: #ffd166;
        font-weight: bold;
    }

.battle-table tr:nth-child(even) {
    background: #202020;
}

.battle-table tr:nth-child(odd) {
    background: #1a1a1a;
}

/* ================= DESKTOP FIX ================= */
@media (min-width: 992px) {

    .table-wrapper {
        overflow-x: visible; /* remove scroll */
        display: flex;
        justify-content: center; /* center table */
    }

    .battle-table {
        width: 85%; /* 👈 control width */
        min-width: auto; /* remove forced scroll */
        max-width: 1100px;
    }
}

/* ================= CHALLENGE ================= */
.challenge-section {
    width: 100%;
    background: #000;
    padding: 40px 0px;
}

.challenge-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 20px;
}

/* Desktop */
@media (min-width: 992px) {
    .challenge-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 991px) {
    .challenge-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 599px) {
    .challenge-container {
        grid-template-columns: 1fr;
    }
}

.challenge-card {
    background: #1a1a1a;
    padding: 20px 20px 20px 55px;
    border-radius: 8px;
    position: relative;
    color: #fff;
}

.challenge-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: gray;
    padding: 5px 10px;
    border-radius: 5px;
}

.challenge-card h3 {
    color: #c20e49;
    margin-bottom: 10px;
}

.challenge-card p {
    color: #ccc;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
    .category-card {
        width: 110px;
        height: 130px;
    }

    .cat-icon {
        width: 35px;
        height: 35px;
    }

    .battle-table th,
    .battle-table td {
        font-size: 12px;
        padding: 8px;
    }
}


