/**
 * Estilos base — App del Jugador
 * SPEC: SPEC-FRONT-USER v1.1.0 §9
 * Mobile-first
 * @version 1.0.0
 */

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── Layout ──────────────────────────────────────────────── */
.app-body { display: flex; min-height: 100vh; }
.app-main { flex: 1; padding: 70px 16px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 600px; margin: 0 auto; }

@media (min-width: 1024px) {
    .app-main { margin-left: 240px; padding: 24px 32px; }
}

/* ─── Mobile Header ───────────────────────────────────────── */
.mobile-header { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--color-card); border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 100; }
.mobile-header__logo { display: flex; align-items: center; }
.club-logo { height: 32px; width: auto; }
.club-logo--small { height: 28px; }
.hamburger { background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; color: var(--color-text); }

@media (min-width: 1024px) {
    .mobile-header { display: none; }
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.sidebar { position: fixed; top: 0; left: -260px; width: 240px; height: 100vh; background: var(--color-card); border-right: 1px solid var(--color-border); display: flex; flex-direction: column; z-index: 200; transition: left var(--transition); overflow-y: auto; }
.sidebar--open { left: 0; }
.sidebar__header { padding: 20px 16px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 12px; }
.sidebar__club-name { font-weight: 600; font-size: 14px; color: var(--color-text); }
.sidebar__nav { flex: 1; padding: 8px 0; }
.sidebar__link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--color-text-muted); font-size: 14px; transition: background var(--transition); }
.sidebar__link:hover { background: var(--color-secondary); text-decoration: none; color: var(--color-text); }
.sidebar__link--active { color: var(--color-primary); background: var(--color-secondary); font-weight: 600; border-right: 3px solid var(--color-primary); }
.sidebar__icon { font-size: 18px; }
.sidebar__footer { padding: 16px 20px; border-top: 1px solid var(--color-border); font-size: 13px; }
.sidebar__user { display: block; font-weight: 600; margin-bottom: 4px; }
.sidebar__logout { color: var(--color-danger); font-size: 12px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150; }
.sidebar-overlay--visible { display: block; }

@media (min-width: 1024px) {
    .sidebar { left: 0; }
    .sidebar-overlay { display: none !important; }
}

/* ─── Guest Layout (login, register) ─────────────────────── */
.guest-body { background: var(--color-bg); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 24px; }
.guest-container { width: 100%; max-width: 420px; }
.guest-logo { text-align: center; margin-bottom: 24px; }
.guest-logo .club-logo { height: 48px; }
.guest-club-name { font-size: 18px; font-weight: 600; margin-top: 8px; color: var(--color-text); }
.auth-card { background: var(--color-card); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); }
.auth-card__title { font-size: 22px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.auth-card__desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; text-align: center; }
.auth-card__links { margin-top: 16px; text-align: center; font-size: 13px; }
.auth-card__links a { margin: 0 8px; }

/* ─── Page Headers ────────────────────────────────────────── */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 22px; font-weight: 700; }
.page-header__balance { font-size: 14px; color: var(--color-text-muted); }

/* ─── Typography ──────────────────────────────────────────── */
h1 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--color-text-muted); }

/* ─── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb__item + .breadcrumb__item::before { content: '›'; margin-right: 4px; }
.breadcrumb__item--active { color: var(--color-text); }
