/**
 * Gym Fuel — Vibe Profile entry + hidden profile modal
 * Map glow is scoped to #vibe-profile-entry only (does not affect map pins).
 */

@keyframes gf-vibe-pulse {
    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.35), 0 0 16px rgba(0, 255, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 14px rgba(0, 255, 0, 0.65), 0 0 28px rgba(0, 255, 0, 0.28);
    }
}

.gf-vibe-entry {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    max-width: 100%;
}

.gf-vibe-entry--compose {
    flex-direction: row-reverse;
    margin-left: auto;
    padding-left: 0.5rem;
}

.gf-vibe-avatar-btn {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 2px solid rgba(0, 255, 0, 0.55);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

#vibe-profile-entry .gf-vibe-avatar-btn,
.gf-vibe-entry--compose .gf-vibe-avatar-btn {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: gf-vibe-pulse 2s ease-in-out infinite;
}

.gf-vibe-avatar-btn:hover {
    cursor: pointer;
    transform: scale(1.04);
    border-color: rgba(0, 255, 0, 0.85);
}

.gf-vibe-avatar-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-vibe-avatar-btn .gf-vibe-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 800;
    color: #86efac;
}

.gf-vibe-separator {
    flex-shrink: 0;
    color: rgba(148, 163, 184, 0.65);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

.gf-vibe-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.gf-vibe-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

.gf-vibe-status {
    font-size: 0.68rem;
    font-weight: 600;
    color: #86efac;
}

.gf-vibe-status--guest {
    color: #94a3b8;
}

.gf-vibe-status-btn {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: #94a3b8;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gf-vibe-status-btn:hover {
    cursor: pointer;
    color: #f87171;
}

.gf-compose-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.gf-compose-toolbar .gf-chat-compose-actions {
    margin: 0;
    flex-shrink: 0;
}

/* Modal — hidden until open */
.gf-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
}

.gf-profile-overlay[hidden] {
    display: none !important;
}

.gf-profile-modal {
    width: min(20rem, 92vw);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    padding: 1.25rem 1.25rem 1.1rem;
    color: #f1f5f9;
    font-family: system-ui, -apple-system, sans-serif;
}

.gf-profile-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gf-profile-modal-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.45);
    object-fit: cover;
    flex-shrink: 0;
}

.gf-profile-modal-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    font-size: 1.25rem;
    font-weight: 800;
    color: #86efac;
}

.gf-profile-close {
    border: none;
    background: rgba(75, 85, 99, 0.45);
    color: #f1f5f9;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.gf-profile-close:hover {
    cursor: pointer;
    background: rgba(75, 85, 99, 0.7);
}

.gf-profile-modal-name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.gf-profile-modal-checkins {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.gf-profile-modal-checkins .gf-checkin-score {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

.gf-profile-modal-checkins .gf-checkin-score__count {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.gf-profile-modal-checkins .gf-checkin-score .upm-checkin-star-icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 2px;
    margin: 0 0 0 8px;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.65))
        drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.35));
}

.gf-profile-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f97316;
    margin-bottom: 0.35rem;
}

.gf-profile-instagram-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #00bfff;
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 0.85rem;
    cursor: pointer;
}

.gf-profile-instagram-link:hover {
    text-decoration: underline;
}

.gf-profile-instagram-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(75, 85, 99, 0.55);
    background: rgba(11, 15, 26, 0.95);
    color: #f1f5f9;
    padding: 0.55rem 0.65rem;
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
}

.gf-profile-instagram-input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.gf-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gf-profile-btn {
    border: none;
    border-radius: 0.55rem;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.gf-profile-btn:hover {
    cursor: pointer;
}

.gf-profile-btn--edit {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.gf-profile-btn--confess {
    color: #0b0f1a;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.gf-profile-btn--ghost {
    color: #cbd5e1;
    background: rgba(75, 85, 99, 0.45);
}

.gf-profile-btn--signout {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.55);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.gf-chat-author-btn {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 800;
    color: #f97316;
    cursor: pointer;
}

.gf-chat-author-btn:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* Map sidebar host — scoped entry container */
#vibe-profile-entry {
    width: 100%;
}

#vibe-profile-entry .gf-vibe-entry {
    width: 100%;
}

#vibe-profile-entry .gf-vibe-name {
    max-width: 10rem;
}

.sidebar-auth .gf-vibe-entry {
    width: 100%;
}

.sidebar-auth .gf-vibe-name {
    max-width: 10rem;
}

.sidebar-auth--signed-in {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: default;
}
