.tab-switcher {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover:not(.active) {
    background: var(--surface-hover);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.tab-label { font-size: 0.875rem; }

.tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.1rem 0.4rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
}

.tab-btn:not(.active) .tab-pill {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.6rem 0.5rem;
        gap: 0.25rem;
        font-size: 0.8rem;
    }
    .tab-label { font-size: 0.8rem; }
}

/* ── Filters ─────────────────────────────── */

.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.filter-select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ── Book cards ──────────────────────────── */

.book-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-slow);
}

.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.book-cover-wrap {
    height: 180px;
    overflow: hidden;
    background: var(--surface-hover);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.book-title   { font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.book-author  { font-size: 0.825rem; }
.book-review  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

.genre-badge { background: var(--primary); color: #fff; font-weight: 500; font-size: 0.7rem; }
.year-badge  { background: var(--surface-hover); color: var(--text-muted); border: 1px solid var(--border); font-weight: 500; font-size: 0.7rem; }

.book-stars { font-size: 1.3rem; letter-spacing: 2px; line-height: 1; }
.star-full  { color: #f59e0b; }
.star-empty { color: #cbd5e1; }
.star-half  { color: #f59e0b; opacity: 0.45; }

/* ── Section headings ────────────────────── */

.section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
}

/* ── Steam profile card ──────────────────── */

.steam-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.steam-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    flex-shrink: 0;
}

.steam-profile-info { flex: 1; min-width: 0; }
.steam-name  { font-size: 1rem; font-weight: 700; color: var(--text); }
.steam-level { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }

.steam-stats { display: flex; gap: 1.5rem; flex-shrink: 0; }

.steam-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.steam-stat-value { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.steam-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Game cards ──────────────────────────── */

.game-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-slow);
}

.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.game-img-wrap {
    height: 140px;
    overflow: hidden;
    background: var(--surface-hover);
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.game-title        { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.game-hours        { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.game-hours-recent { font-size: 0.8rem; color: #10b981; font-weight: 500; }
.game-card-recent  { border-color: #10b981; }

/* ── Photo gallery ───────────────────────── */

.trip-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }

.photo-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
}

.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.photo-location { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.photo-text     { font-size: 0.8rem; color: var(--text-muted); }

.empty-state { color: var(--text-muted); }
