/**
 * Estilos para el Sistema de Likes estilo Instagram
 * Avatares solapados + texto inteligente + modal de lista
 */

/* ==================== Contenedor de Likes Info ==================== */
.likes-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.likes-info-container:hover {
    opacity: 0.7;
}

.likes-avatars-row {
    display: flex;
    align-items: center;
}

.likes-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.likes-mini-avatar:hover {
    transform: scale(1.1);
    z-index: 10 !important;
}

.likes-text {
    font-size: 14px;
    color: #262626;
    font-weight: 600;
    user-select: none;
}

/* ==================== Modal de Lista de Likes ==================== */
.likes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.likes-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.likes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.likes-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.likes-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #8e8e8e;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.likes-modal-close:hover {
    background: #f0f0f0;
    color: #262626;
}

.likes-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* ==================== Item de Usuario en Lista ==================== */
.likes-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    transition: background 0.2s ease;
}

.likes-user-item:hover {
    background: #fafafa;
}

.likes-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.likes-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.likes-user-names {
    display: flex;
    flex-direction: column;
}

.likes-user-display-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.likes-user-username {
    font-size: 13px;
    color: #8e8e8e;
}

/* ==================== Botones de Seguir ==================== */
.likes-follow-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* .btn-follow {
    background: var(--zikpic-gradient);
    color: white;
}

.btn-follow:hover {
    background: var(--zikpic-secondary);
}
 */
.btn-following {
    background: transparent;
    color: #262626;
    border: 1px solid #dbdbdb;
}

.btn-following:hover {
    background: #fafafa;
}

.likes-follow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Estados de Carga y Vacío ==================== */
.likes-loading,
.likes-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
    font-size: 14px;
}

.likes-loading i {
    font-size: 24px;
    margin-bottom: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .likes-modal {
        width: 95%;
        max-height: 70vh;
    }
    
    .likes-mini-avatar {
        width: 24px;
        height: 24px;
    }
    
    .likes-text {
        font-size: 13px;
    }
    
    .likes-user-avatar {
        width: 38px;
        height: 38px;
    }
    
    .likes-user-display-name {
        font-size: 13px;
    }
    
    .likes-user-username {
        font-size: 12px;
    }
    
    .likes-follow-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}
