/* ================================================================
   GTA Cheats — Frontend Styles  (scoped to .gta-cheats-wrap)
================================================================ */

.gta-cheats-wrap {
    font-family: inherit;
    margin: 1.5em 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Platform Tabs ─────────────────────────────────────────────── */
.gta-platform-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 3px solid #0c5570;
}

.gta-tab {
    padding: 9px 26px;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 0.875em;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: #252836;
    color: #c4d4e4;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.gta-tab.active {
    background: #0c5570;
    color: #ffffff;
}

.gta-tab:hover:not(.active) {
    background: #2e3348;
    color: #ffffff;
}

/* ── Category heading ──────────────────────────────────────────── */
.gta-cheats-wrap .gta-category-title {
    margin: 0 !important;
    padding: 9px 14px !important;
    background: #252836 !important;
    color: #72d9f8 !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    border-left: 4px solid #0c5570;
    border-bottom: none;
    line-height: 1.4 !important;
}

/* ── Table ─────────────────────────────────────────────────────── */
.gta-cheats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #1c1f2a;
    color: #e8eef5;
    font-size: 0.9em;
    table-layout: fixed;
}

.gta-cheats-table thead th {
    background: #0f5a78;
    color: #ffffff;
    padding: 9px 14px;
    text-align: left;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: none;
}

.gta-cheats-table thead th:first-child { width: 42%; }
.gta-cheats-table thead th:last-child  { width: 58%; }

.gta-cheats-table tbody td {
    padding: 10px 14px;
    border: 1px solid #252836;
    vertical-align: middle;
}

.gta-cheats-table tbody tr:nth-child(even) td {
    background: #20232e;
}

.gta-cheats-table tbody tr:hover td {
    background: #252d42;
}

.gta-desc-cell {
    line-height: 1.4;
    color: #e2e8f0;
}

.gta-subtitle {
    display: block;
    font-style: italic;
    font-size: 0.84em;
    color: #bccfdf;
    margin-top: 3px;
}

.gta-code-cell {
    line-height: 1.8;
}

.gta-hidden {
    display: none !important;
}

/* ── Button icons (SVG images) ─────────────────────────────────── */
.gta-btn-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin: 1px 2px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}

/* ── Button badges (text fallback) ─────────────────────────────── */
.gta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.74em;
    font-weight: 700;
    margin: 2px 1px;
    min-width: 26px;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}

/* PS5 — default (shoulders, triggers, d-pad, etc.) */
.gta-btn-ps5 {
    background: #343750;
    color: #c0cce0;
}

/* PS5 — face buttons */
.gta-btn-ps5.gta-btn-cross    { background: #3a72c4; color: #fff; }
.gta-btn-ps5.gta-btn-circle   { background: #c43a3a; color: #fff; }
.gta-btn-ps5.gta-btn-square   { background: #b03aaa; color: #fff; }
.gta-btn-ps5.gta-btn-triangle { background: #2ea96a; color: #fff; }

/* Xbox — default */
.gta-btn-xbox {
    background: #343750;
    color: #c0cce0;
}

/* Xbox — face buttons */
.gta-btn-xbox.gta-btn-a { background: #2e7d32; color: #fff; }
.gta-btn-xbox.gta-btn-b { background: #c62828; color: #fff; }
.gta-btn-xbox.gta-btn-x { background: #1565c0; color: #fff; }
.gta-btn-xbox.gta-btn-y { background: #f9a825; color: #1a1a1a; }

/* PC — keyboard key style */
.gta-btn-pc {
    background: #1c1f2a;
    color: #e0e6f0;
    border: 1px solid #4a5060;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88em;
    letter-spacing: 0.14em;
    padding: 4px 16px;
    border-radius: 3px;
    box-shadow: 0 2px 0 #111;
}

.gta-no-code {
    color: #6a7a92;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .gta-tab {
        padding: 8px 14px;
        font-size: 0.8em;
    }

    .gta-cheats-table {
        font-size: 0.8em;
        table-layout: auto;
    }

    .gta-cheats-table thead th:first-child,
    .gta-cheats-table thead th:last-child {
        width: auto;
    }

    .gta-cheats-table tbody td {
        padding: 8px 10px;
    }

    .gta-btn-icon {
        width: 24px;
        height: 24px;
    }

    .gta-btn {
        font-size: 0.68em;
        padding: 2px 6px;
        min-width: 22px;
    }

    .gta-btn-pc {
        letter-spacing: 0.08em;
        padding: 3px 10px;
    }
}