/* ============================================
   BASE.CSS — Estilos globales de MatchBoy
   ============================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Variables */
:root {
    --bg: #000;
    --bg-soft: #0a0a0a;
    --card-bg: #151515;
    --accent: #ffcc00;
    --text-main: #fff;
    --text-soft: #b5b5b5;
    --danger: #ff3b30;
}

/* General */
html,
body {
    background: var(--bg);
    color: var(--text-main);
    height: 100%;
    overflow-x: hidden;
}

/* Header */
header {
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.avatar-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loc-input {
    flex: 1;
    background: #1c1c1c;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #aaa;
}

.round-btn {
    background: #1c1c1c;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

/* Logout */
.logout-btn {
    background: #330000;
    border-color: #ff3b30;
    color: #ffb3b3;
}

/* Chips */
.filter-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.chip {
    background: #111;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.chip.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

/* Grid */
main {
    flex: 1;
    padding: 6px;
    padding-bottom: 170px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

@media (min-width:768px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* User card */
.card {
    background: var(--card-bg);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Online dot */
.online-dot-card {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff5a;
    border: 2px solid #000;
    box-shadow: 0 0 6px rgba(0, 255, 90, .7);
}

.online-dot-card.offline {
    background: #666;
    box-shadow: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #111;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 999;
    padding: 0 8px;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 2px;
    font-size: 11px;
    color: #aaa;
    text-align: center;
}

.nav-item.active {
    color: var(--accent);
}

.ni-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #1c1c1c;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.nav-item.active .ni-icon {
    background: var(--accent);
    color: #000;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 12px;
    background: red;
    color: #fff;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 10px;
    display: none;
}