/* /css/widget.css */

.follow-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1050; /* Above most content but below modals */
    display: flex;
    align-items: center;
}

.follow-widget-tab {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl; /* Makes text vertical */
    text-orientation: mixed;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
}

.follow-widget-panel {
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);

    /* Hidden by default */
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s ease-in-out;
}

/* State when the widget is expanded */
.follow-widget.expanded .follow-widget-panel {
    max-width: 80px; /* Animate width to reveal */
    padding: 0.75rem;
    opacity: 1;
}

.follow-widget-panel a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.follow-widget-panel a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.follow-widget-panel svg {
    width: 28px;
    height: 28px;
}