/* Reactions List Modal - Matching "Σύνδεση Απαιτείται" Style */
.sh-reactions-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sh-reactions-modal {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    height: 80vh;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sh-reactions-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-reactions-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.sh-reactions-modal-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-reactions-modal-close:hover {
    color: white;
    transform: scale(1.1);
}

/* Tabs */
.sh-reactions-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.sh-reaction-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sh-reaction-tab:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sh-reaction-tab.active {
    background: rgba(58, 145, 205, 0.2);
    border-color: rgba(58, 145, 205, 0.5);
    color: #3A91CD;
}

/* User List */
.sh-reactions-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 0;
}

.sh-reaction-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.sh-reaction-user-card:hover {
    background: rgba(255,255,255,0.03);
}

.sh-reaction-user-avatar {
    position: relative;
    flex-shrink: 0;
}

.sh-reaction-user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

.sh-reaction-emoji-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 18px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(26, 26, 46, 0.95);
}

.sh-reaction-user-info {
    flex: 1;
    min-width: 0;
}

.sh-reaction-user-name {
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.sh-reaction-user-name:hover {
    color: #3A91CD;
    text-decoration: underline;
}

.sh-reaction-mutual {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    display: block;
}

.sh-reaction-user-actions {
    flex-shrink: 0;
}

/* Action Buttons */
.sh-btn-add-friend {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sh-btn-add-friend:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.sh-btn-accept-friend {
background: rgba(40, 167, 69, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.sh-btn-pending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;

}
.sh-btn-message,
.sh-btn-view-profile {
    background: rgba(58, 145, 205, 0.15);
    border: 1px solid rgba(58, 145, 205, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: #3A91CD;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.sh-btn-accept-friend:hover {
       transform: translateY(-1px);
background: rgba(40, 167, 69, 0.25);
  border: 1px solid rgba(40, 167, 69, 0.5);
}
.sh-btn-message:hover,
.sh-btn-view-profile:hover {
    background: rgba(58, 145, 205, 0.25);
    border-color: rgba(58, 145, 205, 0.5);
    transform: translateY(-1px);
    color: #3A91CD;
}

.sh-btn-add-friend i,
.sh-btn-message i,
.sh-btn-accept-friend i,
.sh-btn-pending i,
.sh-btn-view-profile i {
    width: 16px;
    height: 16px;
}

.sh-btn-pending {
    opacity: 0.6;
    cursor: not-allowed;
}

.sh-btn-pending:hover {
    transform: none;
}

.sh-no-reactions {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 40px 20px;
    font-size: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
.sh-reaction-tab {
    height: fit-content;
    margin-bottom: 25px;
}
    .sh-meta-separator {
        display: none;
    }
    .sh-reactions-modal {
        max-width: 95%;
        height: 85vh;
        max-height: 85vh;
    }
    
    .sh-reaction-user-card {
        flex-wrap: wrap;
    }
    
    .sh-reaction-user-actions {
        width: 100%;
        margin-top: 8px;
    }
    
    .sh-btn-add-friend, 
    .sh-btn-pending,
    .sh-btn-message,
    .sh-btn-accept-friend {
        width: 100%;
        justify-content: center;
    }
}
