/* mastopress-sync/public/css/mastopress-public.css */

.mastopress-reactions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mastopress-reactions-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.mastopress-reaction-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative; /* For popup positioning */
}

.mastopress-avatar-stack {
    display: flex;
    padding-left: 0;
    margin: 0;
    margin-right: 15px; /* Space between avatars and text */
}

.mastopress-avatar-stack li {
    list-style-type: none;
    margin-left: -12px;
}

.mastopress-avatar-stack li:first-child {
    margin-left: 0;
}

.mastopress-avatar-stack li a {
    display: block;
    transition: transform 0.2s ease-in-out;
}

.mastopress-avatar-stack li a:hover {
    transform: translateY(-4px);
    z-index: 2;
}

.mastopress-avatar-stack .mastopress-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
    object-fit: cover;
    display: block;
}

.mastopress-reaction-label {
    font-size: 0.9em;
    font-weight: bold;
}

.mastopress-reaction-toggle {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dotted;
}

.mastopress-reaction-toggle:hover {
    border-bottom-style: solid;
}

.mastopress-reaction-text {
    color: inherit;
    cursor: default;
}

/* --- POPUP STYLES --- */

.mastopress-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 220px; /* Reduced width */
    padding: 8px 0; /* Reduced padding */
}

.mastopress-popup.is-visible {
    display: block;
}

.mastopress-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.mastopress-popup li {
    display: flex;
    align-items: center;
    padding: 6px 15px; /* Tighter vertical padding */
}

.mastopress-popup a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.mastopress-popup img {
    width: 28px; /* Smaller avatar */
    height: 28px; /* Smaller avatar */
    border-radius: 50%;
    margin-right: 10px; /* Reduced margin */
}

/* NEW: Styles for the user info container */
.mastopress-popup .user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* NEW: Refined style for the display name */
.mastopress-popup .display-name {
    font-weight: 500; /* Semi-bold instead of bold */
    font-size: 14px; /* Specific, smaller font size */
}

/* NEW: Style for the user handle (@user@instance.social) */
.mastopress-popup .acct {
    font-size: 12px; /* Even smaller font size */
    color: #666; /* Lighter color for subtlety */
    font-weight: normal;
}

