/* Friends section */
.friends-section { margin-top: 18px; }
.friends-section .section-header {
    display: flex; align-items: center; justify-content: space-between;
}
.friends-toggle {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}
.friends-search {
    margin-top: 12px;
    background: #131a24;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #2e3646;
}
.friends-search[hidden] { display: none; }
.friends-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a3142;
    background: #0f1420;
    color: #e6edf7;
    font-size: 16px;
}
.friends-search input::placeholder { color: #6f7a8e; }
.friends-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.friends-search-results { margin-top: 8px; }
.friends-search-empty {
    font-size: 13px; color: #9aa3b8; padding: 8px 4px;
}
.friends-search-row,
.friends-list-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
}
.friends-search-row + .friends-search-row { border-top: 1px solid #2a3142; }
.friends-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #1f2937;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}
.friends-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friends-meta { flex: 1; min-width: 0; }
.friends-username { font-weight: 600; font-size: 14px; color: #f6f9ff; }
.friends-display { color: #9aa3b8; font-size: 12px; }
.friends-action-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.friends-action-btn.add { background: #2563eb; color: white; }
.friends-action-btn.remove { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.friends-action-btn.friend { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.friends-list { list-style: none; margin-top: 12px; }
.friends-list li { border-top: 1px solid #2a3142; }
.friends-list li:first-child { border-top: 0; }
.friends-list li.empty-state { padding: 14px 8px; color: #6b7280; font-size: 13px; }

/* Clickable row-wrapper around avatar+meta in the friends list; strips the
   default <button> look so it still reads as a row. */
.friends-row-open {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 0;
    background: transparent; border: 0; padding: 0;
    color: inherit; cursor: pointer; text-align: left;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.friends-row-open:hover { background: rgba(255, 255, 255, 0.04); }

/* Locked sections in the user-profile view — shown to non-friends instead
   of the drill-down lists, check-ins, and badges. */
.locked-msg {
    color: #6b7280;
    font-size: 13px;
    padding: 10px 8px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px dashed rgba(37, 99, 235, 0.25);
    border-radius: 8px;
    text-align: center;
}

/* Author pill in feed cards becomes a tap target for the profile view. */
.activity-cover-user-pill.is-clickable { cursor: pointer; }

/* User-profile view: back button aligned left, above the avatar. */
.user-profile-top-row { justify-content: flex-start; margin-bottom: 8px; }

/* Back / follow buttons on the friend-profile view. Own class so we dodge
   the broad `.profile-remove-btn { display: none }` override in
   social-overrides.css that hides generic remove-style buttons. */
.user-profile-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #2e3646; border-radius: 999px;
    background: #171d27; color: #d5deeb;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 6px 14px; cursor: pointer;
    transition: background 0.2s ease;
}
.user-profile-action-btn:hover { background: #212938; }
.user-profile-action-btn[hidden] { display: none; }
.user-profile-action-btn.is-friend { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

/* Profile tweaks */
.profile-handle { color: #6b7280; margin: 2px 0 8px; font-size: 14px; }
.profile-actions-row {
    margin-top: 14px;
    display: flex; justify-content: center;
}
.profile-actions-row .profile-remove-btn { background: transparent; color: #6b7280; border: 1px solid #d1d5db; }

/* Feed: two-averages badge row (Tu puntaje + Global side by side). */
.activity-averages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    background: #101724;
    border: 1px solid #2a3142;
    border-radius: 10px;
    font-size: 12px;
}
.activity-averages .avg-cell { text-align: center; }
.activity-averages .avg-label {
    display: block;
    text-transform: uppercase;
    color: #9aa3b8;
    font-size: 10px;
    letter-spacing: 0.04em;
}
.activity-averages .avg-value {
    font-weight: 700; color: #f6f9ff; font-size: 15px;
}
.activity-averages .avg-cell.empty .avg-value { color: #4b5563; }

/* Burger detail per-section averages — rendered as a single-card carousel
   so the 5 sections don't eat vertical space. Arrows + dots let the user
   cycle through them. */
.burger-detail-sections-extra {
    margin-top: 14px;
}
.burger-detail-sections-extra.carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}
.burger-detail-sections-extra.carousel .carousel-track {
    grid-row: 1;
    grid-column: 2;
    min-height: 110px;
    position: relative;
}
.burger-detail-sections-extra.carousel .burger-detail-section-card {
    display: none;
}
.burger-detail-sections-extra.carousel .burger-detail-section-card.active {
    display: block;
}
.burger-detail-sections-extra.carousel .carousel-arrow {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.burger-detail-sections-extra.carousel .carousel-arrow:hover {
    background: #e5e7eb;
}
.burger-detail-sections-extra.carousel .carousel-arrow.prev { grid-row: 1; grid-column: 1; }
.burger-detail-sections-extra.carousel .carousel-arrow.next { grid-row: 1; grid-column: 3; }
.burger-detail-sections-extra.carousel .carousel-dots {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.burger-detail-sections-extra.carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease;
}
.burger-detail-sections-extra.carousel .carousel-dot.active {
    background: #3b82f6;
}
.burger-detail-section-card {
    background: #f3f4f6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}
.burger-detail-section-card .section-name {
    text-transform: uppercase;
    color: #374151; font-size: 11px; letter-spacing: 0.05em; font-weight: 700;
}
.burger-detail-section-card .section-rows {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 8px;
}
.burger-detail-section-card .section-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.burger-detail-section-card .section-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}
.burger-detail-section-card .section-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.burger-detail-friend-note {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #6b7280;
    background: #fef3c7;
    border-radius: 8px;
}
/* ---------- end social features ---------- */



:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

