/* Community Floater Widget Styles */
:root {
    --community-primary: #449cb9;
    --community-bg: rgba(20, 20, 30, 0.9);
    --community-text: #ffffff;
    --community-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --community-radius: 999px;
    --community-anim: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-floater-root {
    position: fixed;
    bottom: 90px;
    /* Above the RPG widget if present */
    right: 25px;
    z-index: 10000;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    pointer-events: none;
}

.community-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--community-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--community-radius);
    color: var(--community-text);
    text-decoration: none;
    box-shadow: var(--community-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--community-anim);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    max-width: 50px;
    /* Initially collapsed to icon */
    white-space: nowrap;
}

.community-pill:hover {
    max-width: 300px;
    /* Expand on hover */
    border-color: var(--community-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 156, 185, 0.4);
}

.community-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--community-primary);
}

.community-info {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.community-pill:hover .community-info {
    opacity: 1;
}

.community-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.community-name {
    font-size: 14px;
    font-weight: 600;
}

/* Tooltip appearance */
.community-pill::after {
    content: "Ir a la Comunidad";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--community-bg);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: var(--community-anim);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-pill:hover::after {
    opacity: 0;
    /* Hide tooltip when expanded */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .community-floater-root {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}