/* Popup для отображения списка пользователей, оценивших статью */
.likes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.likes-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.likes-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.likes-popup-overlay.show .likes-popup {
    transform: scale(1);
}

.likes-popup-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.likes-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.likes-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.likes-popup-close:hover {
    color: #333;
}

.likes-popup-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.likes-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.likes-user-item {
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            margin-bottom: 8px;
}

.likes-user-item:last-child {
    /* border-bottom: none; */
}

.likes-user-item:hover {
    /* background-color: #f3f4f6;
    border-radius: 8px; */
    background: linear-gradient(145deg, #fef3e2 0%, #fef9e7 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);

}

.likes-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e9ecef;
}

.likes-user-info {
    flex: 1;
}

.likes-user-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.likes-user-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.likes-user-name a:hover {
    color: #3498db;
}

.likes-user-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.likes-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.likes-popup-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

/* Анимация загрузки */
.likes-popup-loading {
    text-align: center;
    padding: 40px 20px;
}

.likes-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .likes-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .likes-popup-header {
        padding: 16px;
    }
    
    .likes-popup-title {
        font-size: 16px;
    }
    
    .likes-popup-content {
        padding: 8px;
    }
    
    .likes-user-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Стили для кликабельных счетчиков лайков */
.likes-count-clickable,
.dislikes-count-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.likes-count-clickable:hover,
.dislikes-count-clickable:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/* Для кнопок с лайками */
.action-btn .likes-count-clickable,
.action-btn .dislikes-count-clickable {
    pointer-events: auto;
}

.action-btn .likes-count-clickable:hover,
.action-btn .dislikes-count-clickable:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* MY CSS */
.likes-popup-close:hover{
	color: inherit;
  background-color: #eeeeee;
}

/*END MY CSS*/
